-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(math): fix edge cases of ln and pow #533
fix(math): fix edge cases of ln and pow #533
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's great we have more tests and better error handling on key functions. Commented with some suggestions, might be done in a later PR but given how important those low-level libraries are for the rest of the stack, we should delay for too long to provide strong correctness guarantees.
4d879da
to
96380bc
Compare
96380bc
to
4f78f8c
Compare
Not mandatory, but since Rust 1.80, the |
Even though we shouldn't hit these cases in doing math for cardano, it's a good practice to add them to the math library in case they are needed for the future.