Download Sysquake User Manual

Transcript
Libraries — polynom
679
Description
disp(p) displays polynomial p. It is also executed implicitly when LME
displays the polynom result of an expression which does not end with
a semicolon.
Example
use polynom
p = polynom([3,0,1,-4,2])
p =
3xˆ4+xˆ2-4x+2
See also
polynom::polynom, disp
polynom::double
Convert a polynom object to a vector of coefficients.
Syntax
use polynom
coef = double(p)
Description
double(p) converts polynomial p to a row vector of descending-power
coefficients.
Example
use polynom
p = polynom([3,0,1,-4,2]);
double(p)
3 0 1 -4 2
See also
polynom::polynom
polynom::subst
Substitute the variable of a polynom object with another polynomial.
Syntax
use polynom
subst(a, b)