CoCoA:Poly

From ApCoCoAWiki

Poly

convert an expression into a polynomial

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 ::= Q[x];
  Poly(Vector(x));
x
-------------------------------

Syntax

Poly(E:OBJECT):POLY

Cast

   <type>polynomial</type>