sqroot of a 2**n number ?
Brian V. Smith
envbvs at epb2.lbl.gov
Mon May 15 02:27:02 AEST 1989
In article <1928 at yunexus.UUCP> oz at yunexus.UUCP (Ozan Yigit) writes:
>In article <4890 at umd5.umd.edu> setzer at wam.umd.edu writes:
>
>>int sqrt_of_2_to_the_n(n)
>>int n;
>>{
>> return (1 << (n / 2)); /* integer division */
>>}
>Say what ?? (1 << (16 / 2) == 256 !!! I always thought sqrt(16) == 4.
Try reading the name of the function. It returns the square root
of 2**n, not n!
>use the source, luke !! Usenet: oz at nexus.yorku.ca
Use the brain, luke !!
_____________________________________
Brian V. Smith (bvsmith at lbl.gov)
Lawrence Berkeley Laboratory
We don't need no signatures!
More information about the Comp.lang.c
mailing list