Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Produce an arithmetic progression with a specified difference
ResourceFunction["ArithmeticProgression"][n,d] produces an arithmetic progression of n terms starting at d and incrementing by d. | |
ResourceFunction["ArithmeticProgression"][n,d,a] produces an arithmetic progression starting term at a rather than d. |
Compute the first 10 terms of an arithmetic progression with a common difference of :
In[1]:= |
Out[1]= |
Perform a ListLinePlot of different arithmetic progressions:
In[2]:= |
Out[2]= |
Get 30 terms with a common difference of , starting at 20:
In[3]:= |
Out[3]= |
ArithmeticProgression can handle complex numbers, symbols and constants:
In[4]:= |
Out[4]= |
An arithmetic progression of common difference 1 is the same as a Range:
In[5]:= |
Out[5]= |
The Mean of an arithmetic progression is the same as its Median:
In[6]:= |
Out[6]= |
The sum of all terms is the half the length of the progression times the first term plus the last term:
In[7]:= |
Out[7]= |
In[8]:= |
Out[8]= |
This work is licensed under a Creative Commons Attribution 4.0 International License