C language hacking

david at imd.UUCP david at imd.UUCP
Sun Nov 18 15:17:51 AEST 1984


>        sine = sin(x);
>        cosine = sqrt(1.0 - sine*sine);
>Sqrt() is lots cheaper than cos().

But is it the positive or negative root of the sqrt?
By the time that was figured out, one probably could have called cos().



More information about the Comp.lang.c mailing list