1c_ftcurvi(3NCARG) NCAR GRAPHICS c_ftcurvi(3NCARG)
2
3
4
6 c_ftcurvi - calculate integrals
7
9 int c_ftcurvi (float, float, int, float [], float [], float *);
10
12 int c_ftcurvi (xl, xr, n, xi, yi, integral);
13
15 xl The lower limit of the integration.
16
17 xr The upper limit of the integration.
18
19 n The number of input data points. (N > 1)
20
21 xi An array containing the abscissae for the input function.
22
23 yi An array containing the functional values of the input
24 function (y(k) is the functional value at x(k) for k=0,n).
25
26 integral The integral of the function from xl to xr is given by
27 *integral.
28
30 c_ftcurvi returns an error value as per:
31
32 = 0 -- no error.
33 = 1 -- if n is less than 2.
34 = 2 -- if X values are not strictly increasing.
35
37 c_ftcurvi is called after all of the desired values for control parame‐
38 ters have been set using the procedures c_ftseti, c_ftsetr, c_ftsetc.
39 Control parameters that apply to c_ftcurvi are: sig, sl1, sln, sf1.
40
42 To use c_ftcurvi, load the NCAR Graphics library ngmath.
43
45 fitgrid_params, c_ftseti, c_ftsetr, c_ftsetc.
46
47 Complete documentation for Fitgrid is available at URL
48 http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html
49
51 Copyright (C) 2000
52 University Corporation for Atmospheric Research
53
54 This documentation is free software; you can redistribute it and/or
55 modify it under the terms of the GNU General Public License as pub‐
56 lished by the Free Software Foundation; either version 2 of the
57 License, or (at your option) any later version.
58
59 This software is distributed in the hope that it will be useful, but
60 WITHOUT ANY WARRANTY; without even the implied warranty of MER‐
61 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
62 Public License for more details.
63
64 You should have received a copy of the GNU General Public License along
65 with this software; if not, write to the Free Software Foundation,
66 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
67
68
69
70
71UNIX March 1998 c_ftcurvi(3NCARG)