Simple Infinite Series Calculator 👉 Just Put a Series function,upper and lower limits and specifiy precision. |
|
A FOSS (Free & Open Source Software) project. Maintained by @Aashish Pawar ⚡. | |
Follow Aashish's #FOSS work on GitHub @Aashish Pawar⚡ 🙌 |
just use -f command line option with a function like
1/n , 1/n**2, 1/fact(n),1/n*2,1/n**3
etc and provide upper and lower limit (starting and ending points of a series).
Supported Mathematical functions are:
- 🥞 fac(n) ✓
- 🤠 trigonometric functions sin(n), cos(n), tan(n) ✓
- 🐎 sqrt(n), cbrt(n) ✓
- 📟 sinh() cosh() tanh() ✓
- 🤯 exp() → exponential function ✓
- 🗃 More Functions coming soon ✓
Consider this series.
This series evalues to constant PI (π).
so , we'll convert it to the function 4*(-1)**(n+1)/(2*n-1)
. And see if can get value of pi .
$> python series_calc.py -f 4*(-1)**(n+1)/(2*n-1)
[OUTPUT] : => 3.1415926535897932384626433832795028841971693993751
$> python series_calc.py -f 4*(-1)**(n+1)/(2*n-1) -p 100
[OUTPUT] : => 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117068
Let's check simple infinite series convergence.
Consider this series.
💯 Run the following.
python series_calc.py -f 1/fact(n) -l 0
🎛 you'll get 2.7182818284590452237327915268 which exacly equal to constant e.
There are just one option i.e -f which is important for your series_calc workflow. Specify the lower limit using -l or upper limit using -u and precision using -s (scale) option.
Use -h option to get information about all the options supported.
- Arithmetic and mathematical functions
- Mathematical Constants support (e,pi,phi)
- command line animation while calculation is running