Research V4 development
[unix-history] / man / man6 / spline.6
CommitLineData
e9c01a43
DM
1.th SPLINE VI 10/20/73
2.sh NAME
3spline \*- interpolate smooth curve
4.sh SYNOPSIS
5.bd spline
6[ option ] ...
7.sh DESCRIPTION
8.it Spline
9takes pairs of numbers from the standard input as abcissas and ordinates
10of a function.
11It produces a similar set, which
12is approximately equally spaced and
13includes the input set, on the standard output.
14The cubic spline output
15(R. W. Hamming,
16.ft I
17Numerical Methods for Engineers and Scientists,
18.ft R
192nd ed., 349ff)
20has two continuous derivatives,
21and sufficiently many points to look smooth when plotted, for
22example by
23.it plot
24(I).
25.s3
26The following options are recognized,
27each as a separate argument.
28.s3
29.lp +5 5
30\fBa\fR Supply abscissas automatically (they are missing from
31the input); spacing is given by the next
32argument, or is assumed to be 1 if next argument is not a number.
33.s3
34.lp +5 5
35\fBn\fR Output approximately
36.it n
37points, where
38.it n
39is given by the next argument.
40(Default
41.it n
42= 100.)
43.s3
44.lp +5 5
45\fBp\fR Make output periodic, i.e. match
46derivatives at ends.
47First and last input values should normally agree.
48.s3
49.lp +5 5
50\fBx\fR Next 1 (or 2) arguments are lower (and upper) \fIx\fR limits.
51.i0
52.sh "SEE ALSO"
53plot(I)
54.sh AUTHOR
55M. D. McIlroy
56.sh BUGS
57A limit of 1000 input points is enforced silently.