public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug manual/2516] New: typo in README.libm
@ 2006-04-05 15:59 bruno dot roggeri at supelec dot fr
  2006-04-05 16:03 ` [Bug manual/2516] " bruno dot roggeri at supelec dot fr
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bruno dot roggeri at supelec dot fr @ 2006-04-05 15:59 UTC (permalink / raw)
  To: glibc-bugs

x and y are swapped in the sqrt algorithm explanation, README.libm line 489.

-- 
           Summary: typo in README.libm
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: manual
        AssignedTo: roland at gnu dot org
        ReportedBy: bruno dot roggeri at supelec dot fr
                CC: glibc-bugs at sources dot redhat dot com


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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug manual/2516] typo in README.libm
  2006-04-05 15:59 [Bug manual/2516] New: typo in README.libm bruno dot roggeri at supelec dot fr
@ 2006-04-05 16:03 ` bruno dot roggeri at supelec dot fr
  2006-09-12  9:30 ` jakub at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: bruno dot roggeri at supelec dot fr @ 2006-04-05 16:03 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From bruno dot roggeri at supelec dot fr  2006-04-05 16:03 -------
Created an attachment (id=951)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=951&action=view)
README.libm patch

I just found the "add attachment" link, so here's the "patch".

-- 


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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug manual/2516] typo in README.libm
  2006-04-05 15:59 [Bug manual/2516] New: typo in README.libm bruno dot roggeri at supelec dot fr
  2006-04-05 16:03 ` [Bug manual/2516] " bruno dot roggeri at supelec dot fr
@ 2006-09-12  9:30 ` jakub at redhat dot com
  2006-09-12 10:37 ` bruno dot roggeri at supelec dot fr
  2007-03-30 12:04 ` jakub at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at redhat dot com @ 2006-09-12  9:30 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From jakub at redhat dot com  2006-09-12 09:30 -------
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.
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)


-- 


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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug manual/2516] typo in README.libm
  2006-04-05 15:59 [Bug manual/2516] New: typo in README.libm bruno dot roggeri at supelec dot fr
  2006-04-05 16:03 ` [Bug manual/2516] " bruno dot roggeri at supelec dot fr
  2006-09-12  9:30 ` jakub at redhat dot com
@ 2006-09-12 10:37 ` bruno dot roggeri at supelec dot fr
  2007-03-30 12:04 ` jakub at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: bruno dot roggeri at supelec dot fr @ 2006-09-12 10:37 UTC (permalink / raw)
  To: glibc-bugs


------- 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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug manual/2516] typo in README.libm
  2006-04-05 15:59 [Bug manual/2516] New: typo in README.libm bruno dot roggeri at supelec dot fr
                   ` (2 preceding siblings ...)
  2006-09-12 10:37 ` bruno dot roggeri at supelec dot fr
@ 2007-03-30 12:04 ` jakub at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at redhat dot com @ 2007-03-30 12:04 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From jakub at redhat dot com  2007-03-30 13:04 -------
This is actually fixed since September 2006.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-03-30 12:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-05 15:59 [Bug manual/2516] New: typo in README.libm bruno dot roggeri at supelec dot fr
2006-04-05 16:03 ` [Bug manual/2516] " bruno dot roggeri at supelec dot fr
2006-09-12  9:30 ` jakub at redhat dot com
2006-09-12 10:37 ` bruno dot roggeri at supelec dot fr
2007-03-30 12:04 ` jakub at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).