A generator of irrational numbers and series of numbers.
| Constant / series | Steps | Runtime (s) | Time complexity |
|---|---|---|---|
| pi | 10,000 | 2.49 | |
| e | 100,000 | 4.61 | |
| Golden ratio | 1,000,000 | 8.65 | |
| Fibonacci | 100,000* | 0.26 | |
| Primes | 10,000,000 | 1.04 |
*Higher step count may cause OOM error.
After a successful installation, open a terminal window in the installed folder and run these commands:
| Command | Description |
|---|---|
python main.py pi xxx |
Calculates pi with xxx steps |
python main.py e xxx |
Calculates e with xxx steps |
python main.py golden_ratio xxx |
Calculates golden ratio with xxx steps |
python main.py fibonacci xxx |
Calculates fibonacci with xxx steps |
python main.py prime xxx |
Calculates primes with xxx steps |