RationalField is a class of field of rationals. The class has the single instance 'theRationalField'.
superclass: nzmath.ring.QuotientField
Create an instance of RationalField. You may not want to create an instance, since there is already theRationalField.
Return 1, since the class number of the rational field is one.
Create a Rational object. If the number of arguments is one, it must be an integer or a rational. If the number of arguments is two, they must be integers.
Return the rational field itself.
Report whether another ring contains the rational field as
subring.
If other is also the rational field, the output is True. If
other is the integer ring, the output is False. In other
cases it depends on the implementation of another ring's
issuperring method.
Report whether the rational number field contains another
ring as subring.
If other is also the rational number field or the ring of
integer, the output is True. In other cases it depends on the
implementation of another ring's issubring method.
gcd, isfield
isdomain, iseuclidean, isnoetherian, ispid, isufd
in, str
(These properties are new in 0.4.1)