Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Get the polynomial degree of an algebraic number
ResourceFunction["RootDegree"][s] returns the polynomial degree of the algebraic number s. |
Find the root degree of the plastic constant, which satisfies the relation
:
| In[1]:= |
| Out[1]= |
Find the root degree for roots of polynomials of orders 2 to 8:
| In[2]:= |
| Out[2]= |
Find the root degree of some trigonometric roots:
| In[3]:= |
| Out[3]= |
| In[4]:= |
| Out[4]= |
Root degree of an AlgebraicNumber:
| In[5]:= |
| Out[5]= |
Show the root degree of cumulative sums of roots of primes:
| In[6]:= |
| Out[7]= |
The default $MaxRootDegree is 1000:
| In[8]:= |
| Out[8]= |
Under default conditions, a degree-1000 root may be evaluated:
| In[9]:= |
| Out[9]= |
A degree-1001 root will fail under default conditions:
| In[10]:= |
| Out[10]= |
RootDegree only works on exact algebraic numbers:
| In[11]:= |
| Out[11]= |
Use RootApproximant to get a number that can be given to RootDegree:
| In[12]:= |
| Out[12]= |
Some algebraic numbers might not be recognized by RootDegree:
| In[13]:= |
| Out[13]= |
| In[14]:= |
| Out[14]= |
This work is licensed under a Creative Commons Attribution 4.0 International License