Skip to content

🧮 Test your infinite series hypothesis with this simple python tool.

License

Notifications You must be signed in to change notification settings

ashishpawar517/Infinite-Series-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Infinite Series Calculator


Codacy Badge Emoji Commits build

forthebadge forthebadge forthebadge forthebadge

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⚡ 🙌

👉 Test a Infinite Series Function

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 ✓

Calculation of PI

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

GETTING STARTED

Let's check simple infinite series convergence.

⚡️ Quick Overview

Consider this series.

we know that this series converge to Eular constant (e). let check that using the tool.

💯 Run the following.

python series_calc.py -f 1/fact(n) -l 0

🎛 you'll get 2.7182818284590452237327915268 which exacly equal to constant e.


Workflow

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.


Help & Other

Use -h option to get information about all the options supported.

Todo

  • Arithmetic and mathematical functions
  • Mathematical Constants support (e,pi,phi)
  • command line animation while calculation is running