Polynomial rings

Rings of polynomials are defined from a coefficient ring.

Mmx] 

use "realroot"

Here is the ring of polynomials with coefficients in ; the first variable is , the second :

Mmx] 

R := ZZ['x,'y]

Notice that in the example above, and should not be assigned to any value. If we want to use the name eg. z of an assigned variable, we quote it:

Mmx] 

z:= 3; R := ZZ['x,'y,'z]

The number of variables is unlimited. If the variable has no name, it is represented by . Here is an how to access to the corresponding polynomials in the ring R:

Mmx] 

[R[0], R[1], R[2], R[100]]

Variable names can be full names:

Mmx] 

QQ[xi, mu]

The set of named variables can be extended:

Mmx] 

R := R[u]

The set of named variables can be redefined:

Mmx] 

R := ZZ[a,b]

Mmx]