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]= |
Radicals under square roots can be denested:
| In[4]:= |
| Out[4]= |
| In[5]:= |
| Out[5]= |
Cube roots with arbitrary powers inside can be denested:
| In[6]:= |
| Out[6]= |
RadicalDenest can take Root objects as input:
| In[7]:= |
| Out[7]= |
Denest it:
| In[8]:= |
| Out[8]= |
Sometimes a denesting effort will only manage to reduce the degree of the radical without reducing the nesting depth:
| In[9]:= |
| Out[9]= |
Some expressions cannot be denested within the default time constraint of five seconds:
| In[10]:= |
| Out[10]= |
Use the TimeConstraint option to allow more time. When the time constraint elapses, the most denested form found is returned:
| In[11]:= |
| Out[11]= |
Many interesting denestings can be found:
| In[12]:= |
| Out[12]= |
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[13]:= |
| Out[13]= |
Since the methods used are heuristic, setting a high TimeConstraint still might not return a fully denested expression:
| In[14]:= |
| Out[14]= |
This work is licensed under a Creative Commons Attribution 4.0 International License