Description Usage Arguments Details Value See Also Examples
Calculate either the monic polynomial with specified zeros, or the Lagrange interpolation polynomial through the (x,y) points.
1 |
x |
numeric vector specifying either the zeros of the desired polynomial if this is the only non-missing argument, or the x-values for Lagrange interpolation. |
y |
numeric vector or matrix specifying the y-values for the
Lagrange interpolation polynomial. If |
tol |
An absolute value tolerance, below which coefficients are treated as zero. |
lab |
If |
If y
is a matrix, the result is a list of polynomials using
each column separately.
If x
only is given, repeated zeros are allowed. If x
and y
are given, repeated values in the x
vector must
have identical y
values associated with them (up to
tol
), otherwise the first y-value only is used and a warning
is issued.
Either a polynomial object, or a list of polynomials, as appropriate.
In the latter case the object is of class "polylist"
.
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.