Murex Interview Question

square root algorithm

Interview Answer

Anonymous

Feb 18, 2014

double squareRoot = number/2; do { g=squareRoot; squareRoot = (g + (number/g))/2; System.out.println(" g =" +g + " squareRoot =" +squareRoot); } while((g-squareRoot)!=0);

1