[comp.lang.fortran] wanna cubic spline

arritt@kuhub.cc.ukans.edu (12/21/90)

Could someone please send me source code for a cubic spline
interpolation scheme, or else direct me to a place where I can
obtain it?  What I need to do is to interpolate from an
irregularly spaced grid to some arbitrary location within
the grid.  The code needs to be plain-vanilla f77 (i.e. no
extensions, system dependencies, etc.) because we run the model on
everything from PC's to VAXes to Crays and don't have the personnel to
maintain multiple versions.

Thanks for whatever help you can provide.
________________________________________________________________________
Raymond W. Arritt                     | 
Assistant Professor                   |
Dept. of Physics and Astronomy        |  "everyone knew that as time went
Univ. of Kansas                       |   by they'd get a little bit older
Lawrence, KS  66045                   |   and a little bit slower..."
arritt@kuhub.cc.ukans.edu             |               
arritt@ukanvax.bitnet                 |
                               

hooft@ruunsa.fys.ruu.nl (Rob Hooft) (12/21/90)

In <27575.2770d581@kuhub.cc.ukans.edu> arritt@kuhub.cc.ukans.edu writes:

>Could someone please send me source code for a cubic spline
>interpolation scheme, or else direct me to a place where I can
>obtain it?

Numerical Recipes, The art of scientific computing

William H Press, Brian P Flannery, Saul A Teukolsky & William T Vetterling

Cambridge University Press

ISBN 0-521-30811-9


Also Available: Floppy disks with all sources.
This book is very powerfull! I use it on a regular basis.
-- 
Rob Hooft, Chemistry department University of Utrecht.
hooft@hutruu54.bitnet hooft@chem.ruu.nl hooft@fys.ruu.nl

jav8106@ritvax.isc.rit.edu (Doctor FORTRAN) (12/21/90)

In article <27575.2770d581@kuhub.cc.ukans.edu>, arritt@kuhub.cc.ukans.edu asks
for "plain-vanilla f77" sources for cubic spline interpolation.

Doctor FORTRAN is happy to recommend the excellent collection of routines from
Carl deBoor's _Practical_Guide_to_Splines_. I understand that it is available
from netlib, with the name "pppack" (the first two ps in the name derive from
"piecewise polynomial). You can get a brief description of the routines in this
package by sending a one line e-mail message ("send index from pppack") to one
of the netlib sites. You will be sending mail to a machine, so try to avoid
getting tricky. General information on netlib may be obtained by sending the
line "send index".

For folks in the US, the best location is probably AT&T Bell Labs in Murray
Hill, New Jersey. The preferred address is "netlib@research.att.com".

I have used this package on DEC VAX/VMS, IBM PC, and even an old Apollo DN560
workstation. I have had no complaints. As far as documentation goes, well, I
imagine the idea is that you purchase a copy of deBoor's book. I don't know if
it is still in print, but it is in many academic libraries. The publisher is
Springer-Verlag, if my memory is correct.

C ==========================================================================

C === This subroutine will write a signature at the end of a posting.

      Subroutine Signature
      Write (*, 101)
  101 Format (1H1, 'Doctor FORTRAN', /, ' Master of the Realm', /,
     1            ' Reply: jav8106@ritvax.isc.rit.edu')

      Return
      End