PiCalcAlgorithm enum

Specifies the algorithm to use when calculating the value of pi.

The gaussLegendre method uses the Gauss-Legendre algorithm to compute the value of pi. The chudnovsky method uses the Chudnovsky algorithm to compute the value of pi.

Inheritance
Available extensions

Values

GaussLegendre → const PiCalcAlgorithm

Calculates the value of pi using the Chudnovsky algorithm.

Chudnovsky → const PiCalcAlgorithm

Computes the value of π to the specified precision using the Gauss-Legendre algorithm.

BBP → const PiCalcAlgorithm

Calculates the value of pi using the BBP (Bailey–Borwein–Plouffe) algorithm.

Madhava → const PiCalcAlgorithm

Calculates the value of pi using the Madhava algorithm.

Ramanujan → const PiCalcAlgorithm

Calculates the value of pi using the Ramanujan algorithm.

NewtonEuler → const PiCalcAlgorithm

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

values → const List<PiCalcAlgorithm>
A constant List of the values in this enum, in order of their declaration.