.\" .\" $Id: c_ftcurvpi.m,v 1.4 2008-07-27 03:35:38 haley Exp $ .\" .TH c_ftcurvpi 3NCARG "March 1998" UNIX "NCAR GRAPHICS" .SH NAME c_ftcurvpi - calculate integrals for periodic functions .SH FUNCTION PROTOTYPE int c_ftcurvpi (float, float, float, int, float [], float [], float *); .SH SYNOPSIS int c_ftcurvpi (xl, xr, p, m, xi, yi, integral); .SH DESCRIPTION .IP xl 12 The lower limit of the integration. .IP xr 12 The upper limit of the integration. .IP p 12 The period of the function; p must not be less than xi[n-1] - xi[0]. .IP m 12 The number of input data points. (N > 1) .IP xi 12 An array containing the abscissae for the input function. .IP yi 12 An array containing the functional values of the input function (y(k) is the functional value at x(k) for k=0,n). .IP integral 12 The integral of the function from xl to xr is given by *integral. .SH RETURN VALUE c_ftcurvpi returns an error value as per: .br .sp = 0 -- no error. .br = 1 -- if n is less than 2. .br = 2 -- if the period is strictly less than the span of the abscissae. .br .SH USAGE c_ftcurvpi 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_ftcurvpi are: sig. .SH ACCESS To use c_ftcurvpi, load the NCAR Graphics library ngmath. .SH SEE ALSO fitgrid_params, c_ftseti, c_ftsetr, c_ftsetc. .sp Complete documentation for Fitgrid is available at URL .br http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html .SH COPYRIGHT Copyright (C) 2000 .br University Corporation for Atmospheric Research .br The use of this Software is governed by a License Agreement.