|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apfloat.samples.Pi.BorweinPiCalculator
Calculates pi using the Borweins' quartic algorithm.
Constructor Summary | |
Pi.BorweinPiCalculator(long precision,
int radix)
Construct a pi calculator with the specified precision and radix. |
Method Summary | |
java.lang.Object |
execute()
Calculate pi using the Borweins' quartic iteration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Pi.BorweinPiCalculator(long precision, int radix)
precision
- The target precision.radix
- The radix to be used.Method Detail |
public java.lang.Object execute()
execute
in interface Operation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |