Path: utzoo!yunexus!oz From: oz@yunexus.UUCP (Ozan Yigit) Newsgroups: comp.lang.c Subject: Re: sqroot of a 2**n number ? Message-ID: <1928@yunexus.UUCP> Date: 13 May 89 21:56:30 GMT Article-I.D.: yunexus.1928 References: <1906@yunexus.UUCP> <4890@umd5.umd.edu> Reply-To: oz@yunexus.UUCP (Ozan Yigit) Organization: York U. Communications Research & Development Lines: 16 In article <4890@umd5.umd.edu> setzer@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. oz -- use the source, luke !! Usenet: oz@nexus.yorku.ca uh... we forgot to tell you... ......!uunet!utai!yunexus!oz it is unintelligible, but hey, you Bitnet: oz@[yulibra|yuyetti] got it, for free (!). Phonet: +1 416 736-5257x3976