Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

graph(1g)

plot(1g)

spline(1g)

Name

spline − interpolate smooth curve

Syntax

spline [option...]

Description

The spline command takes pairs of numbers from the standard input as abcissas and ordinates of a function. It produces a similar set, which is approximately equally spaced and includes the input set, on the standard output. The cubic spline output has two continuous derivatives, and a sufficient number of points to look smooth when plotted.

Options

The following options are recognized, each as a separate argument. 

−aSupplies abcissa automatically and uses specified number (next argument) for spacing.  Default is 1. 

−kSets the boundary constant to the specified value (next argument).  By default k = 0.  For example,

y′′0=ky′′1,y′′n=ky′′n−1

−nUses specified number (n) in calculating intervals between lower and upper limits.  (Default n = 100.) 

−pPeriodically produces output (matches derivates at ends).  First and last input values should normally agree. 

−xUses specified numbers (next arguments) as lower and upper limits.  Normally these limits are calculated from the data.  Automatic abcissas start at lower limit (default 0). 

Restrictions

A limit of 1000 input points is enforced silently. 

Diagnostics

When data is not strictly monotone in x, spline reproduces the input without interpolating extra points.

See Also

graph(1g), plot(1g)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026