Polynomial
Action: performing a polynomial coefficient calculating input values to be input and output real scalar or vector.
库:Simulink / Math Operations
Polyval
Action: a polynomial calculation, i.e. evaluator polynomial at a point.
For example: B = polyval (A ,. 7);
a polynomial coefficient, a characterization polynomial; i.e., the value of the polynomial 7 position.
For example: count = 2x polynomials F . 4 + 7x . 3 the -X- 2 -2
It may be a = [2 7 -1 -2]; x = -2: 0.01: 5;
f=polyval(a,x);
Wherein a is the parameter, x is the abscissa
E.g:
= A [2. 5. 4. 3. 1 0. 4];
X = -3: 0.01:. 3;
F = polyval (A, X);
Plot (X, F, 'LineWidth', 2);% this must be added
the xlabel ( 'X');
ylabel ( 'F');
Polyder
Action: differential polynomial, i.e. derivation, the input polynomial coefficients are the coefficients of the polynomial derivation and output.
[
Back polynomial q
,d
] = polyder(a,b
)a
and b
the derivative's, Q ( X ) D ( X ) = D X [ A ( X ) B ( X ) ] / DX .
Polyint
Role: quadrature, obtained by integrating the coefficients of the polynomial.
For example: b = polyint (a, 7);
a polynomial coefficient, a characterization polynomial; 7 points for the last one - constant term.
NOTE: The last parameter vectors are constant term, a polynomial uncertain number of items have to write 0 vector.