How to take the square root of an Ada GNAT Big_Real number? I don’t see a sqrt function listed and the “**” function takes on only integers for the exponent.
Thanks,
Retired Build Engineer
How to take the square root of an Ada GNAT Big_Real number? I don’t see a sqrt function listed and the “**” function takes on only integers for the exponent.
Thanks,
Retired Build Engineer
FYI.
Replying to my own post…
I remembered (finally) about the Newton Method and could not remember the algorithm, looked it up and saw some examples (on Rosetta Code!) and now I have a Nth root for Big_Reals that’s good enough for me, but not good enough to “publish” to the world.
I probably should not post questions when I am tired, sleepy or irritable (well, in that case, I’d never post!)
Retired Build Engineer
Wow. Maybe you should submit that to gnat.
Hmmm…it’s not THAT good. I guess it was so easy to do that they decided not to include it to inspire old people like me? I think my sarcasm alert sensor is not accurate today…need to calibrate it somehow.