Square root algorithm
Assalamualaikum,
Can anybody help me making a square root algorithm in java?
But I have to use the linear approximation formula...
L(x) = f(a) + f'(a)*(x-a)
where x : the number that we want to take the square root from
a : the nearest point to x, sqrt of a is an integer
f'(a): the derivation of f(a);
f(x) = sqrt(x);
ex. x = 899 --> a = 900
PLEASE HELP ME! i found problems on deciding the nearest point.

