2006/11/24

42th post

To calculate the root square of an N non complex/non negative number is simple, although the most natural method is rather time consuming.
  1. guess root
  2. calculate avarage on the guessed root and N/root
continue on 2. step with the new root OR in C style syntax:
for (i = 0;   i   <=   20 ;   i++) {
     root   =   (root   +   N/root)/2;
}
(;