This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug manual/2516] typo in README.libm


------- Additional Comments From bruno dot roggeri at supelec dot fr  2006-09-12 10:37 -------
(In reply to comment #2)
> Nope, your patch is wrong.  x is the value we want to compute square root of
> and it certainly doesn't need to be in the [1, 4) interval.
True.

> You either want to write:
>  *      find an integer k such that  1 <= (y=x*2^(-2k)) < 4, then
>  *              sqrt(x) = 2^k * sqrt(y)
> or
>  *      find an integer k such that  1 <= (y=x*2^(2k)) < 4, then
>  *              sqrt(x) = 2^(-k) * sqrt(y)
> 
I think I prefer the first option. Or maybe something like this is easier to read :
 *      find an integer k such that  1 <= (y=x/(2^2k)) < 4, then
 *              sqrt(x) = 2^k * sqrt(y)

(I removed the parenthesis around 2k in an attempt to reduce "parenthesis bloat" :)

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2516

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]