1CURVI(3NCARG) NCAR GRAPHICS CURVI(3NCARG)
2
3
4
6 CURVI - integrate a spline curve
7
9 FUNCTION CURVI (XL, XU, N, X, Y, YP, SIGMA)
10
11 This function calculates an integral between two specified limits.
12 CURV1 must be called prior to calling CURVI, and the values thus
13 obtained used as input to CURVI. The value of the integral is
14 returned.
15
17 XL (real, input) The lower limit of the integration.
18
19 XR (real, input) The upper limit of the integration.
20
21 N (real, input) The number of input data values. (N > 1)
22
23 X (real, input) An array containing the abscissae for the
24 input function.
25
26 Y (real, input) An array containing the functional values of
27 the input function -- Y(K) is the (real, input) functional
28 value at X(K) for K=1,N.
29
30 YP (real, input) Contains values for the second derivative (as
31 calculated by CURV1).
32
33 SIGMA (real, input) Tension factor. Values near zero result in a
34 cubic spline; large values (e.g. 50) result in nearly a
35 polygonal line. A typical value is 1.
36
38 CURVI returns the integral of the interpolated curve between the speci‐
39 fied limits.
40
42 To use CURVI, load the NCAR Graphics library ngmath.
43
45 curv1, fitgrid_params.
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 CURVI(3NCARG)