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

NAME

6       CURV1 - does set-up for CURV2.
7

SYNOPSIS

9       CALL CURV1 (N, X, Y, SLP1, SLPN, ISLPSW, YP, TEMP, SIGMA, IER)
10

DESCRIPTION

12       N           (integer,input) The number of input data values. (N > 1)
13
14       X           (real,  input)  An  array  containing the abscissae for the
15                   input function.
16
17       Y           (real, input) An array containing the functional values  of
18                   the input data -- (Y(K) is the functional value at X(K) for
19                   K=1,N).
20
21       SLP1        (real, input) A user-specified value for the desired  slope
22                   at X(1).  See ISLPSW below if you want to have a value cal‐
23                   culated internally.
24
25       SLPN        (real, input) A user-specified value for the desired  slope
26                   at X(N).  See ISLPSW below if you want to have a value cal‐
27                   culated internally.
28
29       ISLPSW      (integer, input) A switch to indicate whether the slopes at
30                   the end points should be calculated internally.
31
32                   = 0 if SLP1 and SLPN are user-specified.
33                   =  1 if SLP1 is user-specified, but SLPN is internally cal‐
34                   culated.
35                   = 2 if SLPN is user-specified, but SLP1 is internally  cal‐
36                   culated.
37                   = 3 if SLP1 and SLPN are internally calculated.
38
39
40       YP          (real,  output)  Contains  values for the second derivative
41                   (CURV1 computes these).
42
43       TEMP        (real, input) Scratch space.
44
45       SIGMA       (real, input) Tension factor. Values near zero result in  a
46                   cubic  spline;  large  values  (e.g. 50) result in nearly a
47                   polygonal line.  A typical value is 1.
48
49       IER         (integer, output) An error return value. If IER is returned
50                   as 0, then no errors were detected.
51
52                   = 1 if N is less than 2.
53                   = 2 if X values are not strictly increasing.
54

ACCESS

56       To use CURV1, load the NCAR Graphics library ngmath.
57

SEE ALSO

59       curv2, fitgrid_params.
60
61       Complete documentation for Fitgrid is available at URL
62       http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html
63
65       Copyright (C) 2000
66       University Corporation for Atmospheric Research
67
68       The use of this Software is governed by a License Agreement.
69
70
71
72UNIX                              March 1998                     CURV1(3NCARG)
Impressum