Mathematica 9 is now available

IntegerReal

Rational

FilledSmallSquareRational 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: Section 3.1.1.

FilledSmallSquare See also: Rationals, Integer, Numerator, Denominator.

Further Examples

IntegerReal



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.