Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Find a rational number equivalent to a real number with repeating digits
ResourceFunction["RepeatingDecimalToRational"][x,n] returns a rational number that approximates x, assuming the last n digits of x repeat infinitely. | |
ResourceFunction["RepeatingDecimalToRational"][x,{a,b,c,…}] returns a rational number that approximates x with the repeating digits {a,b,c,…} appended. |
Find a fractional representation for 0.333…:
In[1]:= | ![]() |
Out[1]= | ![]() |
Check the fractional representation of 1/7:
In[2]:= | ![]() |
Out[2]= | ![]() |
Specify which digits are repeating:
In[3]:= | ![]() |
Out[3]= | ![]() |
Numericize that:
In[4]:= | ![]() |
Out[4]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License