There is a class Math . It has a sqrt method. Serve a double input, it will take a root from this number and return the result. How? After all, no such formula exists! (or is my math teacher mistaken?) How does this method work?
2 answers
For any function that is infinitely differentiable at some point a, there is a Taylor series expansion at this point, this series contains an infinite number of terms, but to calculate the value with some accuracy you can take some finite number of terms. Due to this, it is possible to calculate a lot of things, including, for example, finding numerically "non-unstable" integrals.
Related link: Taylor Series
After all, no such formula exists!
But what about the people extracts the roots? on a whim, or what? You can even extract a square root even into a column - it is not much more difficult to divide ...
How does this method work?
The processor has a command FSQRT, for example ...
sqrt(a)is the solution to the equationx^2=a, therefore, to calculatesqrt(a), you need to solve (in general) the transcendental equation. Then you can see how the equations are solved numerically. Option two: use decomposition of the root in a row. - post_zeew