6.4.2.1 Rational Objects

class Rational
Instances of class Rational have the following methods (in addition to inherited methods and special methods):

copy,$  $ denom,$  $ denominator,$  $ factor,$  $ height,$  $ mod_ui,$  $ numer,$  $ numerator,$  $ order,$  $ set_si,$  $ set_str,$  $ sqrt,$  $ str

Further documentation:

height( )

The max absolute value of the numerator and denominator of self, as an Integer.

Instances of class Rational also have the following special methods:

__abs__,$  $ __add,$  $ __add__,$  $ __cmp__,$  $ __div,$  $ __div__,$  $ __eq__,$  $ __float__,$  $ __ge__,$  $ __gt__,$  $ __int__,$  $ __invert__,$  $ __le__,$  $ __long__,$  $ __lt__,$  $ __mod__,$  $ __mul,$  $ __mul__,$  $ __ne__,$  $ __neg__,$  $ __pos__,$  $ __pow__,$  $ __radd__,$  $ __rdiv__,$  $ __reduce__,$  $ __repr__,$  $ __rmod__,$  $ __rmul__,$  $ __rpow__,$  $ __rsub__,$  $ __set_value,$  $ __sub,$  $ __sub__,$  $ _latex_,$  $ _mpfr_,$  $ _pari_

See About this document... for information on suggesting changes.