-
Notifications
You must be signed in to change notification settings - Fork 3
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
Req. update(_:)
method
#113
Comments
As a side note, I can get a decent initial approximation as I've already added |
Although, in this particular case it might not matter because the assignment is followed by division 🤷♂️ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm working on some prime stuff, and I need a
squareRoot(of:)
method that doesn't rely on floating points. So, I use Newton's method. It's relatively fast and super simple. In doing so, I noticed that the implementation for core integers and what I might write for UIntXL is similar. UIntXL has anupdate(_:)
method for in-place assignments. If all binary integers had this method, then perhaps I could makesquareRoot(of:)
and friends generic over all binary integer.The text was updated successfully, but these errors were encountered: