up previous next
RingZZ

the ring of integers

Syntax
RingZZ(): RING

Description
This function returns the ring of integers. It is particularly useful when you want to use ZZ (which is a pre-defined top-level variable) inside a function.

NB calling RingZZ twice gives the same identical ring, whereas calling NewPolyRing or NewFractionField return each time a new ring.

Example
/**/  Two := RingElem(RingZZ(), 2);   Two;
2
/**/  type(Two);
RINGELEM;
/**/  RingOf(Two) = RingZZ();
true
/**/  RingOf(Two) = RingQQ();
false

See Also