Create a new ring with the variables from both
and
.
The monomial order of the result is the product order, where each
variable of
is greater than each variable of
. If
either or both of
and
is a quotient ring, then the
result will be one as well. For example,
% ; the ring R has variables a,b,c,d, and S has variables x,y,z. % ring-sum R S T % pring T ; ring T ; characteristic : 31991 ; number of variables : 7 ; 4 variables for block 0 : abcd ; 3 variables for block 1 : xyz ; weights for block 0 : 1 1 1 1 ; weights for block 1 : 1 1 1 ; monomial order : 4 3 c ; top degree of a monomial : 512 512
Caveat: no warning message is given if there is a variable of
with
the same name as a variable of
. In this case, the new ring is created.
The two variables will have the same name, but be internally different.
This means that when inputting a matrix, the second variable cannot be named:
each occurence of the name refers to the variable corresponding to the
ring
.