##INFINITE
Bunch of infinite series and tools to generate infinite series.
##Usage
from infinity import series
## Let me generate a series for 2n + 1.
## Since the series doesn't have any initial value.
@series()
def formulae(n):
return 2*n + 1
##Let me genrate a series for 2kn + 24
## since the series takes k as inital value
@series(2)
def formulae_2(k, n):
return 2*k*n + 24
sofn = formulae_2()
print(next(sofn))
print(next(sofn))
- arithmatic progression.
from infinity import AP
- geometric progression.
from infinity import GP
- linear sum series (Summation of n).
from infinity import sum_linear
- square sum series (Summation of n2).
from infinity import sum_square
- cube sum series (Summation of n3).
from infinity import sum_cube
- sine series.
from infinity import sine
- cosine series.
from infinity import cosine
- harmonic series.
from infinity import harmonics
- exponential series.
from infinity import exponential
MIT