Type
R<x>:= PolynomialRing( Rationals(), 1 );
to define the variable
. It is necessary to define
before
you can type a polynomial in
into MAGMA.
Once you gave a polynomial,
say f:=x^2-1;, you can use MAGMA to do several
things: evaluate
at a particular value of
,
differentiate or integrate
, find the coefficients of
,
factor
, and so on. Type
Factorization( f ); to obtain the factorization of
in
. For example, Factorization( x^2-1 );
gives the factorization
[<x - 1, 1>,<x + 1, 1>].