Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc Intel XENIX 286 Programmers Guide (86) - Tenox.tc

09.06.2013 Views

XENIX Programming Programming Commands spline - Interpolates smooth curve. Syntax spline [ option ] ... Description spline 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 cont inuous derivatives and enough points to look smooth when plotted. The following options are recognized, each as a separate argument. -a Supplies 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 number. -k The constant k used in the boundary value computation Y"o = ky', , ... , Y" n = ky'n-1 is set by the next argument. By default k =0. -n Spaces output points so that approximately n intervals occur between the lower and upper x limits. (Default n = 100.) -p Makes output periodic, i.e., matches 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. Automatic abcissas start at lower limit (default 0). Diagnostics When data is not strictly monotone in x, spline reproduces the input without interpolating extra points. Notes A limit of 1000 input points is silently enforced. B-109

Programming Commands XENIX Programming stackuse - Syntax Determines stack requirements for C programs. stackuse [-a] [ -mstartsym ] [ -rfakeref] [ -slibstack ] [ file ... ] Description stackuse determines the stack requirements of one or more C language programs. It displays the name of the main routine in a file, its stack requirements in bytes, and the number of recursive routines. All command line switches are optional. -a -mstartsym -rfakeref -slibstack Print data for all sy mbols, not just start symbols. Print only the specified start (main) sy mbol. If this option is not specified, all start symbols (including those which are not called by the program) will be printed. Uses the named file fakeref as a fake references file. The format is: parent child. The special parent.LEAF is a meta-parent meaning all leaf nodes. Uses the named file as library of costs for external routines. The format is: subr stack. The special subr.UNDEF is a meta-subroutine meaning all undefined routines. The -r and -s options may be repeated an arbitrary number of times. The effect is additive rather than destructive. In the case of duplicate definitions, the first is used. Lines of the -r and -s files which begin with a pound sign (#) are treated as comments and are ignored otherwise. 8-110

<strong>XENIX</strong> Programming Programming Commands<br />

spline - Interpolates smooth curve.<br />

Syntax<br />

spline [ option ] ...<br />

Description<br />

spline takes pairs of numbers from the standard input as abcissas and ordinates of a<br />

function. It produces a similar set, which is approximately equally spaced and includes<br />

the input set, on the standard output. The cubic spline output has two cont inuous<br />

derivatives and enough points to look smooth when plotted.<br />

The following options are recognized, each as a separate argument.<br />

-a Supplies abscissas automatically (they are missing from the input); spacing is<br />

given by the next argument, or is assumed to be 1 if next argument is not a<br />

number.<br />

-k The constant k used in the boundary value computation<br />

Y"o = ky', , ... , Y" n = ky'n-1<br />

is set by the next argument. By default k =0.<br />

-n Spaces output points so that approximately n intervals occur between the<br />

lower and upper x limits. (Default n = 100.)<br />

-p Makes output periodic, i.e., ma<strong>tc</strong>hes derivatives at ends. First and last input<br />

values should normally agree.<br />

-x Next 1 (or 2) arguments are lower (and upper) x limits. Normally these limits<br />

are calculated from the data. Automatic abcissas start at lower limit<br />

(default 0).<br />

Diagnostics<br />

When data is not strictly monotone in x, spline reproduces the input without<br />

interpolating extra points.<br />

Notes<br />

A limit of 1000 input points is silently enforced.<br />

B-109

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!