4.2.1 sage.rings.rational_field - The field of rational numbers.

The class RationalField represents the field $ \mathbf{Q}$ of (arbitrary precision) rational numbers. Each rational number is an instance of the class Rational.

The module sage.rings.rational_field defines the following classes:

class RationalField
The class RationalField represents the field $ \mathbf{Q}$ of rational numbers.

The module sage.rings.rational_field defines the following methods:

factor( x)

frac( n, d)



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