up previous next
the ring of rationals
This function returns the ring of rationals.
It is particularly useful when you want to use
(which is a pre-defined top-level variable
) inside a function.
twice gives the same identical ring,
return each time a new ring.
/**/ QQ = RingQQ();
/**/ Two := RingElem(RingQQ(), 2); Two;