This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug manual/2516] typo in README.libm
- From: "bruno dot roggeri at supelec dot fr" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 12 Sep 2006 10:37:13 -0000
- Subject: [Bug manual/2516] typo in README.libm
- References: <20060405155911.2516.bruno.roggeri@supelec.fr>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.