Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
poly
polynomial definition
Calling Sequence
p = poly(a, vname, ["flag"])
Arguments
- a
- a matrix or real number 
- vname
- a string, the symbolic variable name. The string must be 4 characters max. 
- "flag"
- string ( - "roots",- "coeff"), default value is- "roots".- Shortcuts can be also used: - "r"for- "roots"and- "c"for- "coeff".
Description
- If ais a matrix,
- pis the characteristic polynomial i.e.- determinant(x*eye()-a),- xbeing the symbolic variable.
- If vis a vector,
- poly(v,"x",["roots"])is the polynomial with- rootsthe entries of- vand- "x"as formal variable. (In this case,- rootsand- polyare inverse functions). Note that Infinite roots gives zero highest degree coefficients. Note that Infinite roots gives zero highest degree coefficients.
- poly(v,"x","coeff")creates the polynomial with symbol- "x"and with coefficients the entries of- v(- v(1)is the constant term of the polynomial). (Here- polyand- coeffare inverse functions).
 
s=poly(0,"s") is the seed for defining
            polynomials with symbol "s".
Examples
s=poly(0,"s"); p=1+s+2*s^2 A=rand(2,2); poly(A,"x") //rational fractions h=(1+2*%s)/poly(1:4,'s','c')
See Also
| Report an issue | ||
| << polfact | Polynomials | rational >> |