🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.math.num-analysis
Article #1319

Re: Root finding - Bug in Num Recipes

#1319
From: James Youngman
Date: Wed, 18 Nov 1998 00:00
28 lines
1835 bytes
Ken Laberteaux <klaberte@trc.tellabs.com> writes:

> I am reading the 2nd Edition of _Numerical Recipes in C_.  I am
> specifically looking at laguer.c.
> 
> On p. 373 the line of code which implements Eq 9.5.7 (p. 372) is 
> 
>                h=Csub(g2,RCmul(2.0,Cdiv(f,b)));
> 
> However Eq 9.5.7 (p. 372) makes no reference of the 2, indicating that
> the correct version should be
> 
>                h=Csub(g2,Cdiv(f,b));
> 
> Can anyone shed some light into this inconsistency?

Not I, but for those viewing via DejaNews, there is a second
(performance) bug in another NR code.  The arbitrary-precision
multiplication code should call fmod(), but instead uses a loop,
producing a drop in performance of at least thirty times (I measured
it).

This is just to keep all the grumbles in one place, you understand.

ObOnTopic: ... and the liccense for the NR code is too restrictive.

-- 
ACTUALLY reachable as @free-lunch.demon.(whitehouse)co.uk:james+usenet
Technical Details
Message-ID: <x6k90stw1u.fsf@no-such-thing-as-a.free-lunch.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3653374B.950EFD0F@trc.tellabs.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1014db,9646b0a747ad2fab
X-Google-Attributes: gid1014db,public
X-Google-Thread: 1025b4,9646b0a747ad2fab
X-Google-Attributes: gid1025b4,public
X-Google-Thread: 107079,9646b0a747ad2fab
X-Google-Attributes: gid107079,public
From: james@no-such-thing-as-a.free-lunch.demon.co.uk(James Youngman)
Subject: Re: Root finding - Bug in Num Recipes
Date: 1998/11/18
Message-ID: <x6k90stw1u.fsf@no-such-thing-as-a.free-lunch.demon.co.uk>
X-Deja-AN: 413970578
X-NNTP-Posting-Host: free-lunch.demon.co.uk:193.237.213.175
References: <3653374B.950EFD0F@trc.tellabs.com>
X-Complaints-To: abuse@demon.net
X-Trace: news.demon.co.uk 911590885 nnrp-03:13827 NO-IDENT free-lunch.demon.co.uk:193.237.213.175
Organization: Where?
Newsgroups: sci.math.num-analysis,comp.lang.c,gnu.misc.discuss