up previous next
Poly

convert an expression into a polynomial
Syntax

Poly(E:OBJECT):POLY


Description
This function converts the expression E into a polynomial, if possible. It is the same as Cast(E, POLY).

Example
  F := 3;
  G := Poly(3);
  Type(F);
INT
-------------------------------
  Type(G);
POLY
-------------------------------
  Use R ::= QQ[x];
  Poly(Vector(x));
x
-------------------------------


See Also