BBP class

Computes the value of π using the BBP (Bailey-Borwein-Plouffe) algorithm. The BBP algorithm is an efficient method for calculating digits of π without computing the entire value. This implementation calculates the specified number of digits of π.

Inheritance

Constructors

BBP.new(int digits)

Properties

digits int
finalinherited
digitsPerIteration double
finalinherited
endTime int
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startTime int
getter/setter pairinherited

Methods

calculate() Decimal
Calculates the value of pi to the specified number of digits.
override
factorial(int n) Decimal
inherited
getTimePerDigit() double
Calculates the time taken to compute one digit of pi.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited