sym SciMax Toolbox symList

SciMax Toolbox >> sym2poly

sym2poly

Converts a sym-polynomial in a Scilab-polynomial

Calling Sequence

S=symb(P,x)

Parameters

P

is a sym-polynomial

x

is a string representing the main variable of P

S

is the resulting Scilab polynomial

Description

The polynomial must have real or complex coefficients.

Examples

Syms('x')
P=x^4-2*x^3+3*x^2-x+1
sym2poly(P,'x')

Author

See also

sym SciMax Toolbox symList