up previous next
QQ

the ring of rationals

Syntax
QQ

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.

Please note: this is a 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