🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Code source of Akima spline

#1292
From: thomacat
Date: Mon, 08 Mar 1999 00:00
40 lines
2487 bytes
I would like to find the code source of two Akima spline procedures in
Delphi. These procedures are in the IMSLM, a fortran library. I couldn't find
the source code, even in Fortran, and what's more I would like to incorporate
them in my Delphi program, WITHOUT using dll.

* The 1st one computes the Akima cubic spline interpolant. It's name is :
              CSAKM(NDATA, XDATA, FDATA, BREAK, CSCOEF)
Arguments:
   NDATA  - Number of data points.  (Input)
   XDATA  - Array of length NDATA containing the data point
            abscissas.  (Input)
            The data point abscissas must be distinct.
   FDATA  - Array of length NDATA containing the data point
            ordinates.  (Input)
   BREAK  - Array of length NDATA containing the breakpoints for
            the piecewise cubic representation.  (Output)
   CSCOEF - Matrix of size 4 by NDATA containing the local
            coefficients of the cubic pieces.  (Output)


* The 2nd one evaluates a cubic spline. It's name is :
                CSVAL(X, NDATA, BREAK, CSCOEF, Y)
Arguments:
   X      - Point at which the spline is to be evaluated.  (Input)
   NDATA  - Number of polynomial pieces.  (Input)
   BREAK  - Array of length NINTV+1 containing the breakpoints for
            the piecewise cubic representation.  (Input)
            BREAK must be strictly increasing.
   CSCOEF - Matrix of size 4 by NINTV+1 containing the local
            coefficients of the cubic pieces.  (Input)
   CSVAL  - Value of the polynomial at X.  (Output)


I'm not used to spline thory, but somebody showed me how ti use these
procedures and I find them very convinient. Could somebody help me ?

Catherine

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    
Technical Details
Message-ID: <7c0kkj$u6$1@nnrp1.dejanews.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10a726,cd4c5f8a9959049a,start
X-Google-Attributes: gid10a726,public
From: thomacat@my-dejanews.com
Subject: Code source of Akima spline
Date: 1999/03/08
Message-ID: <7c0kkj$u6$1@nnrp1.dejanews.com>
X-Deja-AN: 452551859
X-Http-Proxy: 1.0 DUN-COM-PROXY01:8180, 1.0 INT-COM-PROXY01:8080, 1.0 x14.dejanews.com:80 (Squid/1.1.22) for client 195.6.82.132
Organization: Deja News - The Leader in Internet Discussion
X-Article-Creation-Date: Mon Mar 08 13:51:19 1999 GMT
Newsgroups: sci.math.num-analysis;,fr.comp.lang.pascal
X-Http-User-Agent: Mozilla/4.05 [fr] (Win95; I)