Skip to main content

Calculate Pi easily with the Calpi library

Project description

The CalPi library is currently in its alpha development phase.

Disclaimer:

At the recommended iteration setting of 4,000, CalPi can reliably compute up to 1,000 digits of π. Reducing the iteration count may significantly decrease the accuracy of the results. Increasing iterations beyond 50,000 is possible but may cause instability or potential failures in the library’s calculations.

Functionality:

The CalPi library is designed to calculate up to 1,000 digits of π with high precision, offering a practical tool for applications requiring precise values of π for mathematical or scientific computations. CalPi is ideal for environments that need consistent precision with moderate computational resources, like educational purposes or high-accuracy simulations.

Usage Example:

import calpi
from calpi import calpi
result = calpi(1000, 4000)
print(result)

This will output:

3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270193852110555964462294895493038196442881097566593344612847564823378678316527120190914564856692346034861045432664821339360726024914127372458700660631558817488152092096282925409171536436789259036001133053054882046652138414695194151160943305727036575959195309218611738193261179310511854807446237996274956735188575272489122793818301194912983367336244065664308602139494639522473719070217986094370277053921717629317675238467481846766940513200056812714526356082778577134275778960917363717872146844090122495343014654958537105079227968925892354201995611212902196086403441815981362977477130996051870721134999999837297804995105

A note from the developer: This is my first library- Whether it recieves more features and updates as time progresses is uncertain, love you guys <3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

calpi-0.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

calpi-0.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file calpi-0.1.tar.gz.

File metadata

  • Download URL: calpi-0.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for calpi-0.1.tar.gz
Algorithm Hash digest
SHA256 9ed159ae490c9c6fe3cf40029b53156859f70d83ee8a06d7295c787cb44e32a4
MD5 d57c77bb35cbb7d7de60e1d0defc3f15
BLAKE2b-256 5c11b0b9001a5ca55b6d44ae9481ade87e73f9e50c423bf8b6ca858af5eecc67

See more details on using hashes here.

File details

Details for the file calpi-0.1-py3-none-any.whl.

File metadata

  • Download URL: calpi-0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for calpi-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0eddb72465319f31d0bed435eda0463d1cf46e435579d7a619e5dbe5325c3b6e
MD5 8561390570d1a31cdc0105eddbf1a73a
BLAKE2b-256 64425cb041410c8dd0723763bd1ec6cbac690d0b56450e208fb681d6a1db4c1f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page