Calculate Pi with various algorithms.
Images: Package calcpi
Make docker image.
bash run/build.sh
Check docker image ID.
docker images | grep calcpi | awk '{print $3}'
Show help.
bash run/run.sh $(docker images | grep calcpi | awk '{print $3}' | head -1) py -m calcpi
Calculate Pi.
bash run/run.sh $(docker images | grep calcpi | awk '{print $3}' | head -1) py -m calcpi calc gauss_legendre --accuracy 100 -s
Evaluate each algorithm.
bash run/run.sh $(docker images | grep calcpi | awk '{print $3}' | head -1) py -m calcpi evaluate gauss_legendre --accuracy 100
Run pylint.
bash run/run.sh $(docker images | grep calcpi | awk '{print $3}' | head -1) lint calcpi
Run flake8.
bash run/run.sh $(docker images | grep calcpi | awk '{print $3}' | head -1) flake
Run mypy.
bash run/run.sh $(docker images | grep calcpi | awk '{print $3}' | head -1) mypy calcpi
Run test.
bash run/run.sh $(docker images | grep calcpi | awk '{print $3}' | head -1) test