c_ftcurvi(3) calculate integrals

FUNCTION PROTOTYPE

int c_ftcurvi (float, float, int, float [], float [], float *);

SYNOPSIS

int c_ftcurvi (xl, xr, n, xi, yi, integral);

DESCRIPTION

xl
The lower limit of the integration.
xr
The upper limit of the integration.
n
The number of input data points. (N > 1)
xi
An array containing the abscissae for the input function.
yi
An array containing the functional values of the input function (y(k) is the functional value at x(k) for k=0,n).
integral
The integral of the function from xl to xr is given by *integral.

RETURN VALUE

c_ftcurvi returns an error value as per:

= 0 -- no error.
= 1 -- if n is less than 2.
= 2 -- if X values are not strictly increasing.

USAGE

c_ftcurvi is called after all of the desired values for control parameters have been set using the procedures c_ftseti, c_ftsetr, c_ftsetc. Control parameters that apply to c_ftcurvi are: sig, sl1, sln, sf1.

ACCESS

To use c_ftcurvi, load the NCAR Graphics library ngmath.

COPYRIGHT

Copyright (C) 2000
University Corporation for Atmospheric Research

The use of this Software is governed by a License Agreement.