-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
math/big: add Float.Sqrt #20460
Comments
Thanks for creating the issue. If you'd like to work on this, I highly recommend Brent and Zimmerman, Modern Computer Arithmetic, available online at https://members.loria.fr/PZimmermann/mca/mca-cup-0.5.9.pdf. This is what I used for integer square root and some other things, and it looks like floating-point square root is covered as well. As far as the API is concerned, I'm OK with the addition but will leave the final decision to Robert. /cc @griesemer |
I'm ok with sqrt for big.Floats. @ALTree if you plan to work on this, please implement this in a new file. Also, it may take a while before I get to reviewing it. |
Thanks for the suggestions. @griesemer no problem, there's plenty of time before the go1.10 freeze. |
Change https://golang.org/cl/67830 mentions this issue: |
From #14102
Add a
Float
method to compute square roots:The text was updated successfully, but these errors were encountered: