CUBSPL

 

Langunage type

SubRoutine

FORTRAN

call rd_cubspl(xval, zval, identity, order, array, errflg)

or cubspl(xval, zval, identity, order, array, errflg)

C/C++

rd_cubspl(xval, zval, identity, order, &array[0], &errflg)

or cubspl(xval, zval, identity, order, &array[0], &errflg)

 

Parameter information

 

Variable Name

Size

Description

xval

double

An input variable for the CUBSPL function.

- Generally, this variable is time or a function that returns a real number.

zval

double

An input variable for the CUBSPL function.

- The second variable is necessary for three dimensional spline functions.

- This variable must be a function that returns a real number. Otherwise, 0 is applied.

 

identity

double

The identity of Spline.

order

int

The interpolation methods for the functions (return the value if 0, return calculation for 1st order differential equation if 1, and return calculation for 2nd order differential equation if 2)

1) order = 0

2) order = 1

3) order = 2

array

double

errflg

int

Error flag. If the result of this argument is zero, there’s no error