PRODUCTS
PURCHASE
FOR USERS
COMPANY
OUR SITES
DOCUMENTATION CENTER SEARCH
Mathematica
>
Representation of Numbers
>
Built-in
Mathematica
Symbol
Types of Numbers
Tutorials »
|
Rationals
Integer
Real
Numerator
Denominator
Rationalize
See Also »
|
Atomic Elements of Expressions
Representation of Numbers
More About »
Rational
Rational
is the head used for rational numbers.
MORE INFORMATION
You can enter a rational number in the form
n
/
m
.
The pattern object
_Rational
can be used to stand for a rational number. It cannot stand for a single integer.
You have to use
Numerator
and
Denominator
to extract parts of
Rational
numbers.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Enter a rational number:
In[1]:=
Out[1]=
Rational
is the
Head
for rational numbers:
In[2]:=
Out[2]=
Scope
(7)
Applications
(1)
Properties & Relations
(4)
Possible Issues
(1)
SEE ALSO
Rationals
Integer
Real
Numerator
Denominator
Rationalize
TUTORIALS
Types of Numbers
MORE ABOUT
Atomic Elements of Expressions
Representation of Numbers
New in 1
© 2008 Wolfram Research, Inc.