Hey, i was trying to implement the sqrt function in c, and this was what i came across, and it works abs fine.

But i dont get this , is this a standard logic based on Taylor, Maclaurin or something ?

Is this more of a programming question or a Math formula(which has proof) and has just been put into code.

```
g2=n/2;
do
{
g1=g2;
g2=(g1+n/g1)/2;
}
while((g1-g2)!=0);
printf("The root of %f is ",n);
printf("%f",g2);
}
```