Skip to content

About

A generator of irrational numbers and series of numbers

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Number Machine



Overview

A generator of irrational numbers and series of numbers.

Benchmark

Constant / series Steps Runtime (s) Time complexity
pi 10,000 2.49 $\mathrm{O}(N\mathrm{log}(N)^{3})$
e 100,000 4.61 $\mathrm{O}(N\mathrm{log}(N)^{3})$
Golden ratio 1,000,000 8.65 $\mathrm{O}(M(N))$
Fibonacci 100,000* 0.26 $\mathrm{O}(N^{2})$
Primes 10,000,000 1.04 $\mathrm{O}(N\mathrm{log}(\mathrm{log}(N)))$

*Higher step count may cause OOM error.

Usage

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

About

A generator of irrational numbers and series of numbers

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages