Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
Mathematica > Assumptions and Domains >

Rationals

Rationals
represents the domain of rational numbers, as in xRationals.
  • xRationals evaluates immediately only if x is a numeric quantity.
  • Simplify[exprRationals] 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.
2/3 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]=
New in 4
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team