-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
.pow() and .root() functions for fraction types #60
Comments
Hi @Gip-Gip, thank you for your interest and your support! Regarding Not too sure about One of the primary goals of this library is to provide lossless math, so I am not too sure if an approximation would follow that direction. However, if we explicitly call that out in the function name (e.g. |
I'll look into experimenting with a few options over the next few days or so. A good .pow function would look something like
|
I've been working on a crate heavily building on top of the fraction crate for exact arithmetic. the relevant code is here |
I'm currently writing a basic calculator with this library and I noticed at the moment there is no .pow() or .root() style functions for fractions.
Also when performing square roots should they simply be approximated or should numbers simply represent simplified square roots, popping all of the irrational roots in a vector or something like that. For example, something like this
I would like to contribute I'm just unsure how as to go about tackling this problem, at the moment
The text was updated successfully, but these errors were encountered: