spline(1) CLIX spline(1)
NAME
spline - Interpolates a smooth curve
SYNOPSIS
spline [flags]
-a Supply abscissas automatically (they are missing from the input);
spacing is given by the next argument, or is assumed to be 1 if next
argument is not a numbé'
r.
'' = kyn-1
-k T
ih
sesc
eo
tnb
s'
t
y'
a,
n
th
tekn
ye
n
us
xe
tdai
rg
num
te
he
ntb(
od
ue
nd
far
ul
ytva
kl=
ue0)
c.
omputation:
'' = ky1
-n S
y0
pace output points so that approximately n intervals occur between
the lower and upper x limits (default n = 100).
-o Make output periodic, that is, match derivatives at ends. First and
last input values should normally agree.
-x Next 1 (or 2) arguments are lower (and upper) x limits. Normally,
these limits are calculated from the data. The automatic abscissas
start at the lower limit (default 0).
DESCRIPTION
The spline command takes pairs of numbers from stdin as abscissas and
ordinates of a function. It produces a similar set, which is
approximately equally spaced and includes the input set, on stdout. The
cubic spline output has two continuous derivatives, and sufficiently many
points to look smooth when plotted, for example by graph.
EXAMPLES
To generate output using the spline command , enter a command line similar
to the following:
spline < budget.data | graph | tplot
NOTES
A limit of 1,000 input points is enforced silently.
DIAGNOSTICS
When data is not strictly monotone in x, the spline command reproduces the
2/94 - Intergraph Corporation 1
spline(1) CLIX spline(1)
input without interpolating extra points.
EXIT VALUES
The spline command exits with a value of 0 if successful and a value of 1
if there is a problem with one of the input arguments.
RELATED INFORMATION
Commands: graph(1)
2 Intergraph Corporation - 2/94