Legacy Documentation

Mathematica® Teacher's Edition (2002)

This is documentation for an obsolete product.
Current products and services
 Documentation /  Mathematica Teacher's Edition /  Built-in Functions /  Numerical Computation /  Number Representation /

Rational

FilledSmallSquare Rational is the head used for rational numbers.

FilledSmallSquare You can enter a rational number in the form n/m.
FilledSmallSquare The pattern object _Rational can be used to stand for a rational number. It cannot stand for a single integer.
FilledSmallSquare You have to use Numerator and Denominator to extract parts of Rational numbers.
FilledSmallSquare See The Mathematica Book on the web: Section 3.1.1.
FilledSmallSquare See also: Rationals, Integer, Numerator, Denominator.