Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Determine if a number is rational
The fraction 2/3 is rational:
In[1]:= | ![]() |
Out[1]= | ![]() |
The integer 2 is rational:
In[2]:= | ![]() |
Out[2]= | ![]() |
The numbers and
are not rational:
In[3]:= | ![]() |
Out[3]= | ![]() |
Decimal numbers are not considered to be rational:
In[4]:= | ![]() |
Out[4]= | ![]() |
Wolfram Language 13.0 (December 2021) or above
This work is licensed under a Creative Commons Attribution 4.0 International License