From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31923 invoked by alias); 12 Sep 2006 10:37:22 -0000 Received: (qmail 31893 invoked by uid 48); 12 Sep 2006 10:37:13 -0000 Date: Tue, 12 Sep 2006 10:37:00 -0000 Message-ID: <20060912103713.31892.qmail@sourceware.org> From: "bruno dot roggeri at supelec dot fr" To: glibc-bugs@sources.redhat.com In-Reply-To: <20060405155911.2516.bruno.roggeri@supelec.fr> References: <20060405155911.2516.bruno.roggeri@supelec.fr> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug manual/2516] typo in README.libm X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2006-09/txt/msg00054.txt.bz2 List-Id: ------- 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.