pi_calculator 0.0.1 copy "pi_calculator: ^0.0.1" to clipboard
pi_calculator: ^0.0.1 copied to clipboard

A Dart package for high-precision calculation of Pi (π) using the Srinivasa Ramanujan series.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.0.1 - 2025-07-21 #

Added #

  • Initial release of the pi_calculator package.
  • Implemented PiCalculator class for high-precision Pi calculation using the Srinivasa Ramanujan series.
  • Included factorial helper method for BigInt factorial calculations.
  • Included bigIntPow helper method for efficient BigInt exponentiation.
  • Added input validation for calculatePiRamanujan (numTerms, decimalPrecision).
  • Implemented comprehensive unit tests for PiCalculator and its helper methods.
0
likes
150
points
28
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Dart package for high-precision calculation of Pi (π) using the Srinivasa Ramanujan series.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

decimal

More

Packages that depend on pi_calculator