Wolfram Language Paclet Repository
Community-contributed installable additions to the Wolfram Language
Create generalized number ranges
Contributed by: Daniele Gregori
This paclet aims to provide various functions for systematically producing numbers with generic features: - rational, algebraic, transcendental or complex; - expressed in terms of constants, special functions or equations; - constrained by bounds, steps or complexity.
To install this paclet in your Wolfram Language environment,
evaluate this code:
PacletInstall["DanieleGregori/GeneralizedRange"]
To load the code after installation, evaluate this code:
Needs["DanieleGregori`GeneralizedRange`"]
Generate a range of square roots:
| In[1]:= |
| Out[1]= |
| In[2]:= |
| Out[2]= |
Generate a square root range with non-unit step:
| In[3]:= |
| Out[3]= |
| In[4]:= |
| Out[4]= |
Create a range made of generic algebraic numbers and a nearly uniform numeric values distribution:
| In[5]:= |
| Out[5]= | ![]() |
| In[6]:= |
| Out[6]= |
AlgebraicRange[ord,{x,y}] is naturally suited for searching possible closed forms through ResourceFunction["FindClosedForm"]:
| In[7]:= | ![]() |
| Out[7]= |
| In[8]:= |
| Out[8]= |
The built-in function RootApproximant may have difficulty recognizing certain root combinations:
| In[9]:= |
| Out[9]= |
| In[10]:= |
| Out[10]= |
However, equipping ResourceFunction["FindClosedForm"] with AlgebraicRange[x,y,s,options] enables its systematic recognition:
| In[11]:= | ![]() |
| Out[11]= |