1c_ftcurvpi(3NCARG)               NCAR GRAPHICS              c_ftcurvpi(3NCARG)
2
3
4

NAME

6       c_ftcurvpi - calculate integrals for periodic functions
7

FUNCTION PROTOTYPE

9       int c_ftcurvpi (float, float, float, int, float [], float [], float *);
10

SYNOPSIS

12       int c_ftcurvpi (xl, xr, p, m, xi, yi, integral);
13

DESCRIPTION

15       xl          The lower limit of the integration.
16
17       xr          The upper limit of the integration.
18
19       p           The period of the function; p must not be less than xi[n-1]
20                   - xi[0].
21
22       m           The number of input data points. (N > 1)
23
24       xi          An array containing the abscissae for the input function.
25
26       yi          An array containing the  functional  values  of  the  input
27                   function (y(k) is the functional value at x(k) for k=0,n).
28
29       integral    The  integral  of  the  function  from xl to xr is given by
30                   *integral.
31

RETURN VALUE

33       c_ftcurvpi returns an error value as per:
34
35       = 0 -- no error.
36       = 1 -- if n is less than 2.
37       = 2 -- if the period is strictly less than the span of the abscissae.
38

USAGE

40       c_ftcurvpi is called after all of the desired values for control param‐
41       eters  have been set using the procedures c_ftseti, c_ftsetr, c_ftsetc.
42       Control parameters that apply to c_ftcurvpi are: sig.
43

ACCESS

45       To use c_ftcurvpi, load the NCAR Graphics library ngmath.
46

SEE ALSO

48       fitgrid_params, c_ftseti, c_ftsetr, c_ftsetc.
49
50       Complete documentation for Fitgrid is available at URL
51       http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html
52
54       Copyright (C) 2000
55       University Corporation for Atmospheric Research
56
57       The use of this Software is governed by a License Agreement.
58
59
60
61UNIX                              March 1998                c_ftcurvpi(3NCARG)
Impressum