up previous next
QQ    --    the ring of rationals


Syntax
QQ: RING

Description
This system variable is constant; its value is the field of rationals. Its name is protected so that it cannot be re-assigned to any other value.

NOTE: this is a (protected) variable, so in define/endefine use RingQQ instead (or import it with TopLevel ).

Example
/**/  use QQ;

/**/  type(5);
INT
/**/  type(RingElem(QQ, 5));
RINGELEM

/**/  QQ = RingQQ();
true

See Also