This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Rationals

Rationals
represents the domain of rational numbers, as in .
  • evaluates immediately only if x is a numeric quantity.
  • Simplify can be used to try to determine whether an expression corresponds to a rational number.
  • The domain of integers is taken to be a subset of the domain of rationals.
is a rational number:
A sum of rational numbers is a rational number:
Find rational solutions of an equation:
is a rational number:
In[1]:=
Click for copyable input
Out[1]=
 
A sum of rational numbers is a rational number:
In[1]:=
Click for copyable input
Out[1]=
 
Find rational solutions of an equation:
In[1]:=
Click for copyable input
Out[1]=
Test domain membership of a numeric expression:
Make domain membership assumptions:
Specify the default domain over which Reduce should work:
TraditionalForm formatting:
New in 4