Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!samsung!crackers!m2c!umvlsi!pswanson From: pswanson@umvlsi.ecs.umass.edu (Paul Swanson) Newsgroups: comp.sys.amiga.programmer Subject: Re: Lattice C and Numerical Recipes Message-ID: <1534@umvlsi.ecs.umass.edu> Date: 20 Feb 91 17:11:23 GMT References: <1991Feb20.145015.21284@decuac.dec.com> Followup-To: comp.sys.amiga.programmer Organization: University of Massachusetts, Amherst Lines: 18 In article <1991Feb20.145015.21284@decuac.dec.com> baker@wbc.enet.dec.com writes: > > I've found that one has to take the code in Numerical Recipes > in C with a grain of salt (pardon the pun). There are a lot > of quirky little things that they do. It's best to read their > description of the algorithm, get a good grasp on what they're > trying to do, then check the details of their implementation. > > Regards, > Art Baker I have noticed that the C version of the code in Nerical Recipes is directly transcribed from the Fortran version. This includes things like using array indicies starting with 1 instead of 0 and completely ignoring the existence of pointers. I tend to do my own translation from Fortan to C because it comes out better. Paul.