(11+x)^2 = 140 11^2 + 2*11*x + x^2 = 140 2*11*x + x^2 = 19 x^2 + 2*11*x - 19 = 0
To solve this problem you need to do another sqrt:
x = -11 + sqrt((2*11)^2 + 4 * 19) / 2
Or for the final answer:
11+x = sqrt((2*11)^2 + 4 * 19) / 2
It is not faster than just doing
sqrt(140)
If you are looking for a quick approximation:
x^2 + 2*11*x - 19 = 0 x = (19 - x^2)/(2*11)
Guessing x = 0.5, gives
x = 19/(2*11) - 0.5*0.5/(2*11) = 0.852272727
You can reapply this to get more convenient approximations, but the Newton method is probably faster.
source share