1CURVD(3NCARG) NCAR GRAPHICS CURVD(3NCARG)
2
3
4
6 CURVD - derivatives for 1D functions.
7
9 FUNCTION CURVD (T, N, X, Y, YP, SIGMA)
10
11 This function calculates a derivative at a specified point using a
12 spline under tension. CURV1 must be called prior to calling CURVD, and
13 the values thus obtained used as input to CURVD. The derivative value
14 is returned.
15
17 T (real, input) The abscissa for which an interpolated func‐
18 tion value is desired.
19
20 N (integer, input) The number of input data values. (N > 1)
21
22 X (real, input) An array containing the abscissae for the
23 input function.
24
25 Y (real, input) An array containing the functional values of
26 the input data -- Y(K) is the functional value at X(K) for
27 K=1,N.
28
29 YP (real, input) Contains values for the second derivative (as
30 calculated by CURV1).
31
32 SIGMA (real, input) Tension factor. Values near zero result in a
33 cubic spline; large values (e.g. 50) result in nearly a
34 polygonal line. A typical value is 1.
35
37 CURVD returns the derivative value of the interpolated curve at the
38 specified point T.
39
41 To use CURVD, load the NCAR Graphics library ngmath.
42
44 curv1, fitgrid_params.
45
46 Complete documentation for Fitgrid is available at URL
47 http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html
48
50 Copyright (C) 2000
51 University Corporation for Atmospheric Research
52
53 This documentation is free software; you can redistribute it and/or
54 modify it under the terms of the GNU General Public License as pub‐
55 lished by the Free Software Foundation; either version 2 of the
56 License, or (at your option) any later version.
57
58 This software is distributed in the hope that it will be useful, but
59 WITHOUT ANY WARRANTY; without even the implied warranty of MER‐
60 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
61 Public License for more details.
62
63 You should have received a copy of the GNU General Public License along
64 with this software; if not, write to the Free Software Foundation,
65 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
66
67
68
69
70UNIX March 1998 CURVD(3NCARG)