Interp
inert polynomial interpolation function
Calling Sequence
Parameters
Description
Examples
Interp(x, y, v)
Interp(x, y)
x
-
list or Vector of independent values, x[1],..x[n]
y
list or Vector of dependent values, y[1],..y[n]
v
variable name to be used in polynomial
The Interp function is a placeholder for polynomial interpolation. It is used in conjunction with mod and modp1.
The call Interp(x, y, v) mod p computes the polynomial of degree at most n−1 in the name v that interpolates the points (x[1],y[1]), (x[2], y[2]),..., (x[n], y[n]) mod p. The points must be from a finite field.
The call modp1(Interp(x, y), p) computes the interpolation polynomial in the modp1 representation where x and y must be lists.
All the independent values in x must be distinct. In other words, a particular value modulo p must not occur more than once in x.
Interp⁡2,5,6,9,8,3,xmod11
8⁢x2+6⁢x+9
alias⁡α=RootOf⁡x4+x+1
α
a≔Interp⁡0,1,α,α,α2,α3,xmod2
a≔α2⁢x+α⁢x+x2+α+x
See Also
CurveFitting[PolynomialInterpolation]
Eval
mod
modp1
Download Help Document