pol
Polynomial evaluation.
Syntax
F = pol(x, mcoef)
Description
F = pol(x, mcoef) returns the F evaluation of some polynomial (in the
power series). The goal of this function is to write as input, directly
the matrix of coefficients (ci) and powers (pi) [c1 ... cn; p1 ... pn].
Inputs
x = independent tau variable (itau object).
mcoef = coefficients and powers (double matrix).
Output
F = sum(c_i*M^p_i) (double matrix).
Example
x = itau('LegendreP', [1 2], 10);
F = pol(x, [1 3 2 4;0 2 5 7]); % 1*x^0 + 3*x^2 + 2*x^5 + 4*x^7.
F = pol(x, mcoef) returns the F evaluation of some polynomial (in the power series). The goal of this function is to write as input, directly the matrix of coefficients (ci) and powers (pi) [c1 ... cn; p1 ... pn].
Inputs
x = independent tau variable (itau object).
mcoef = coefficients and powers (double matrix).
Output
F = sum(c_i*M^p_i) (double matrix).
Example
x = itau('LegendreP', [1 2], 10);
F = pol(x, [1 3 2 4;0 2 5 7]); % 1*x^0 + 3*x^2 + 2*x^5 + 4*x^7.
F = sum(c_i*M^p_i) (double matrix).