answersLogoWhite

0

One way to estimate the square root of a number is by iteration. This entails making a guess at the answer and then improving on it. Repeating the procedure should lead to a better estimate at each stage. One such is the Newton-Raphson method.

If you want to find the square root of k, define f(x) = x^2 – k. Then finding the square root of k is equivalent to solving f(x) = 0.

Let f’(x) = 2x. This is the derivative of f(x) but you do not need to know that to use the N-R method.

Start with x0 as the first guess. Then let xn+1 = xn - f(xn)/f’(xn) for n = 0, 1, 2, … Provided you made a reasonable choice for the starting point, the iteration will very quickly converge to the true answer. It works even if your first guess is not so good:
Suppose you want the square root of 7 and you start with x0 = 5 (a pretty poor choice since 5^2 is 25, which is nowhere near 7).
Even so, x3 = 2.2362512515, which is less than 0.01% from the true value. Finally, remember that the negative value is also a square root.

User Avatar

Wiki User

9y ago

Still curious? Ask our experts.

Chat with our AI personalities

BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
JudyJudy
Simplicity is my specialty.
Chat with Judy

Add your answer:

Earn +20 pts
Q: How do you calculate a square root?
Write your answer...
Submit
Still have questions?
magnify glass
imp