[comp.sources.wanted] correction to spline code

sandell@ferret.ils.nwu.edu (08/20/90)

From: Greg Sandell <sandell@ferret.ils.nwu.edu>


Several people asked me to send them a copy of the spline code,
and I've responded to at least ten of them by now.  One person
pointed out an error in my comment code, and I'd like to 
correct that:

> Okay, here's the spline code from Numerical Recipes.  In the original
> code, all arrays began at subscript zero, not one.  (I kid you not.)
                            ^^^^^^^^^^^^^^^^^^^^^^^

That's wrong.  I meant the exact opposite.  The code in "Numerical
Recipes in C" treats all arrays as though data begins in array
subscript one...obviously an artifact of the translation from
FORTRAN.  

> I've fixed it so it works right with normal C conventions.  

This meant that I have fixed the code so that all arrays begin
at subscript zero.

****************************************************************
* Greg Sandell (sandell@ils.nwu.edu)              Evanston, IL *
* Institute for the Learning Sciences, Northwestern University *
****************************************************************