Determining Floating Point Square Root
问题 How do I determine the square root of a floating point number? Is the Newton-Raphson method a good way? I have no hardware square root either. I also have no hardware divide (but I have implemented floating point divide). If possible, I would prefer to reduce the number of divides as much as possible since they are so expensive. Also, what should be the initial guess to reduce the total number of iterations??? Thank you so much! 回答1: When you use Newton-Raphson to compute a square-root, you