[DGD] Re: Networking package
Markus Tippmann
Markus.Tippmann at Informatik.Uni-Oldenburg.DE
Mon May 11 12:50:00 CEST 1998
Hi Qi ;)
This is an lpc implementation of sqrt, without taking to much performance...
float
sqrt(mixed x)
{
float r, store;
x = (float)x;
r = 1.0;
while (store != r)
{
store = r;
r = 0.5 * (r + (x / r));
}
return r;
}
regards,
Markus aka Manwe at tta
__________________________________________________
/email: Markus.Tippmann at Informatik.Uni-Oldenburg.de
voice: +49-441-69661
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list