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       This documentation is free software; you  can  redistribute  it  and/or
58       modify  it  under  the  terms of the GNU General Public License as pub‐
59       lished by the  Free  Software  Foundation;  either  version  2  of  the
60       License, or (at your option) any later version.
61
62       This  software  is  distributed in the hope that it will be useful, but
63       WITHOUT ANY  WARRANTY;  without  even  the  implied  warranty  of  MER‐
64       CHANTABILITY  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
65       Public License for more details.
66
67       You should have received a copy of the GNU General Public License along
68       with  this  software;  if  not,  write to the Free Software Foundation,
69       Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
70
71
72
73
74UNIX                              March 1998                c_ftcurvpi(3NCARG)
Impressum