Polynomial( R, l )
Polynomial( R, l, v )
l must be a list of coefficients of the polynomial f to be
constructed, namely (..., f_<v> = <l>[1], f_{<v>+1} = <l>[2], ...) over
R, which must be a commutative ring-with-one or a field. The default
for v is 0. Polynomial
returns this polynomial f.
For interactive calculation it might by easier to construct the
indeterminate over R and construct the polynomial using ^
, +
and
*
.
gap> x := Indeterminate( Integers );; gap> x.name := "x";; gap> f := Polynomial( Integers, [1,2,0,0,4] ); 4*x^4 + 2*x + 1 gap> g := 4*x^4 + 2*x + 1; 4*x^4 + 2*x + 1
GAP 3.4.4