Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - 日本語 - Русский

Please note that the recommended version of Scilab is 6.1.1. This page might be outdated.
See the recommended documentation of this function

Scilab Help >> Polynomials > poly


polynomial definition

Calling Sequence

p = poly(a, vname, ["flag"])



a matrix or real number


a string, the symbolic variable name. The string must be 4 characters max.


string ("roots", "coeff"), default value is "roots".

Shortcuts can be also used: "r" for "roots" and "c" for "coeff".


If a is a matrix,

p is the characteristic polynomial i.e. determinant(x*eye()-a), x being the symbolic variable.

If v is a vector,
  • poly(v,"x",["roots"]) is the polynomial with roots the entries of v and "x" as formal variable. (In this case, roots and poly are inverse functions).

    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 poly and coeff are inverse functions).

s=poly(0,"s") is the seed for defining polynomials with symbol "s".


//rational fractions

See Also

  • coeff — coefficients of matrix polynomial
  • roots — roots of polynomials
  • varn — symbolic variable of a polynomial or a rational
  • horner — polynomial/rational evaluation
  • derivat — Rational matrix derivative
  • matrices — Scilab objects, matrices in Scilab
  • rational — Scilab objects, rational in Scilab


5.5.0 The only values allowed for the third argument are "roots", "coeff", "c" and "r".
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Apr 01 10:13:54 CEST 2015