|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmath.Pi
public class Pi
Constructor Summary | |
---|---|
Pi(int digits)
Construct a task to calculate pi to the specified precision. |
Method Summary | |
---|---|
static java.math.BigDecimal |
arctan(int inverseX,
int scale)
Compute the value, in radians, of the arctangent of the inverse of the supplied integer to the speficied number of digits after the decimal point. |
static java.math.BigDecimal |
computePi(int digits)
Compute the value of pi to the specified number of digits after the decimal point. |
java.lang.Object |
execute()
Calculate pi. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Pi(int digits)
Method Detail |
---|
public java.lang.Object execute()
public static java.math.BigDecimal computePi(int digits)
public static java.math.BigDecimal arctan(int inverseX, int scale)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |