Skip to content

tlming16/pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

this is toy tool to compute the N digits of pi

usage

install

  • python3 -m pip install pi-compute or
  • python3 -m pip install --index-url https://pypi.org/simple/ pi-compute

python usage

  • python3 -m pi_compute.pi 1000
  • import pi_compute as pi; pi.compute(1000)

cpp usage

  • make pi_thread for two threads
  • make pi_v2 for single thread

implementations

  • pi.d:this is the original d language implementations of pi
  • pi.cpp: motivated by pi.d and use two threads to build the dynamic shared library
  • test/pi_v2.cpp is single thread
  • test/pi_thread.cpp is two threads

reference:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published