Function: math[interpol] - polynomial interpolation
Calling Sequence:
interpol(LL);
interpol(LL, var);
Parameters:
LL - a list of lists
var - a name
Description:
interpol is an interface to interp . Instead of two lists with independent and dependent values [x1, x2, ..., xn] and [y1, y2, ..., yn], the function requires a list of lists coordinates pairs, i.e. [[x1, y1], [x2, y2], ..., [xn, yn]].
The points included in LL must not necessarily be unique.
In the first form the result is a polynom in the independent variable 'x'; in the second form, the result is a polynom with the independent variable to be specified by the second argument.
This function is part of the math package, and so can be used only after performing the command with(math) or with(math, interpol).
Examples:
> with(math, interpol):
> LL := [[0, 0], [3, 4], [5, 6], [1, 2]];
> interpol(LL);
> interpol(LL, a);
See Also:
interp , math/interpolplot .
Version History:
Version 1.0 - April 07, 1998
Version 1.0.1 - January 01, 1999