Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Denest nested radical expressions
ResourceFunction["RadicalDenest"][expr] denests an expression containing nested radicals. |
Denest a nested radical:
In[1]:= | ![]() |
Out[1]= | ![]() |
Denest another:
In[2]:= | ![]() |
Out[2]= | ![]() |
Denest a third:
In[3]:= | ![]() |
Out[3]= | ![]() |
Sometimes a denesting effort will only manage to reduce the degree of the radical without reducing the nesting depth:
In[4]:= | ![]() |
Out[4]= | ![]() |
Radicals under square roots and cube roots with arbitrary powers inside can be denested:
In[5]:= | ![]() |
Out[5]= | ![]() |
In[6]:= | ![]() |
Out[6]= | ![]() |
In[7]:= | ![]() |
Out[7]= | ![]() |
Some expressions cannot be denested within the default time constraint of five seconds:
In[8]:= | ![]() |
Out[8]= | ![]() |
Use the TimeConstraint option to allow more time. When the time constraint elapses, the most denested form found is returned:
In[9]:= | ![]() |
Out[9]= | ![]() |
Many interesting denestings can be found:
In[10]:= | ![]() |
Out[10]= | ![]() |
The denestings given by Ramanujan et al., having no definite algorithm that does not involve the complex roots of unity, can be done heuristically using this function:
In[11]:= | ![]() |
Out[11]= | ![]() |
Since the methods used are heuristic, setting a high TimeConstraint still might not return a fully denested expression:
In[12]:= | ![]() |
Out[12]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License