Uses of Class
org.apache.commons.math.dfp.Dfp
Packages that use Dfp
-
Uses of Dfp in org.apache.commons.math.dfp
Subclasses of Dfp in org.apache.commons.math.dfpModifier and TypeClassDescriptionclassSubclass ofDfpwhich hides the radix-10000 artifacts of the superclass.Methods in org.apache.commons.math.dfp that return DfpModifier and TypeMethodDescriptionstatic Dfpcomputes the arc-cosine of the argument.Add x to this.static Dfpcomputes the arc-sine of the argument.static Dfpcomputes the arc tangent of the argument Uses the typical taylor series but may reduce arguments using the following identity tan(x+y) = (tan(x) + tan(y)) / (1 - tan(x)*tan(y)) since tan(PI/8) = sqrt(2)-1, atan(x) = atan( (x - sqrt(2) + 1) / (1+x*sqrt(2) - x) + PI/8.0protected static DfpDfpMath.atanInternal(Dfp a) computes the arc-tangent of the argument.Dfp.ceil()Round to an integer using the round ceil mode.static DfpDfpField.computeExp(Dfp a, Dfp one) Compute exp(a).static DfpCompute ln(a).static DfpCreates an instance that is the same as x except that it has the sign of y.static Dfpcomputes the cosine of the argument.protected static DfpDfpMath.cosInternal(Dfp[] a) Computes cos(a) Used when 0 invalid input: '<' a invalid input: '<' pi/4.Dfp.divide(int divisor) Divide by a single digit less than radix.Divide this by divisor.Raises a trap.static DfpComputes e to the given power.protected static DfpDfpMath.expInternal(Dfp a) Computes e to the given power.Dfp.floor()Round to an integer using the round floor mode.DfpField.getE()Get the constant e.Dfp[]DfpField.getESplit()Get the constant e split in two pieces.DfpField.getLn10()Get the constant ln(10).DfpField.getLn2()Get the constant ln(2).Dfp[]DfpField.getLn2Split()Get the constant ln(2) split in two pieces.DfpField.getLn5()Get the constant ln(5).Dfp[]DfpField.getLn5Split()Get the constant ln(5) split in two pieces.Dfp.getOne()Get the constant 1.DfpField.getOne()Get the constant 1.DfpField.getPi()Get the constant π.Dfp[]DfpField.getPiSplit()Get the constant π split in two pieces.DfpField.getSqr2()Get the constant √2.DfpField.getSqr2Reciprocal()Get the constant √2 / 2.Dfp[]DfpField.getSqr2Split()Get the constant √2 split in two pieces.DfpField.getSqr3()Get the constant √3.DfpField.getSqr3Reciprocal()Get the constant √3 / 3.Dfp.getTwo()Get the constant 2.DfpField.getTwo()Get the constant 2.Dfp.getZero()Get the constant 0.DfpField.getZero()Get the constant 0.static DfpReturns the natural logarithm of a.protected static Dfp[]DfpMath.logInternal(Dfp[] a) Computes the natural log of a number between 0 and 2.Dfp.multiply(int x) Multiply this by a single digit 0<=x<radix.Multiply this by x.Dfp.negate()Returns a number that is this number with the sign bit reversed.DfpField.newDfp()Makes aDfpwith a value of 0.DfpField.newDfp(byte x) Create an instance from a byte value.DfpField.newDfp(byte sign, byte nans) Creates aDfpwith a non-finite value.DfpField.newDfp(double x) Create an instance from a double value.DfpField.newDfp(int x) Create an instance from an int value.DfpField.newDfp(long x) Create an instance from a long value.Create aDfpgiven a String representation.Copy constructor.Dfp.newInstance()Create an instance with a value of 0.Dfp.newInstance(byte x) Create an instance from a byte value.Dfp.newInstance(byte sig, byte code) Creates an instance with a non-finite value.Dfp.newInstance(double x) Create an instance from a double value.Dfp.newInstance(int x) Create an instance from an int value.Dfp.newInstance(long x) Create an instance from a long value.Dfp.newInstance(String s) Create an instance from a String representation.Dfp.newInstance(Dfp d) Create an instance by copying an existing one.DfpDec.newInstance()Create an instance with a value of 0.DfpDec.newInstance(byte x) Create an instance from a byte value.DfpDec.newInstance(byte sign, byte nans) Creates an instance with a non-finite value.DfpDec.newInstance(double x) Create an instance from a double value.DfpDec.newInstance(int x) Create an instance from an int value.DfpDec.newInstance(long x) Create an instance from a long value.DfpDec.newInstance(String s) Create an instance from a String representation.DfpDec.newInstance(Dfp d) Create an instance by copying an existing one.Returns the next number greater than this one in the direction of x.Returns the next number greater than this one in the direction of x.static DfpRaises base to the power a by successive squaring.static DfpComputes x to the y power.Dfp.power10(int e) Return the specified power of 10.Dfp.power10K(int e) Get the specified power of 10000.Returns the IEEE remainder.Dfp.rint()Round to nearest integer using the round-half-even method.static Dfpcomputes the sine of the argument.protected static DfpDfpMath.sinInternal(Dfp[] a) Computes sin(a) Used when 0 invalid input: '<' a invalid input: '<' pi/4.protected static Dfp[]protected static Dfp[]Breaks a string representation up into two dfp's.protected static Dfp[]Divide two numbers that are split in to two pieces that are meant to be added together.protected static Dfp[]Multiply two numbers that are split in to two pieces that are meant to be added together.protected static DfpRaise a split base to the a power.Dfp.sqrt()Compute the square root.Subtract x from this.static Dfpcomputes the tangent of the argument.protected DfpTrap handler.protected DfpDfp.trunc(DfpField.RoundingMode rmode) Does the integer conversions with the specified rounding.Methods in org.apache.commons.math.dfp with parameters of type DfpModifier and TypeMethodDescriptionstatic Dfpcomputes the arc-cosine of the argument.Add x to this.static Dfpcomputes the arc-sine of the argument.static Dfpcomputes the arc tangent of the argument Uses the typical taylor series but may reduce arguments using the following identity tan(x+y) = (tan(x) + tan(y)) / (1 - tan(x)*tan(y)) since tan(PI/8) = sqrt(2)-1, atan(x) = atan( (x - sqrt(2) + 1) / (1+x*sqrt(2) - x) + PI/8.0protected static DfpDfpMath.atanInternal(Dfp a) computes the arc-tangent of the argument.static DfpDfpField.computeExp(Dfp a, Dfp one) Compute exp(a).static DfpCompute ln(a).static DfpCreates an instance that is the same as x except that it has the sign of y.static Dfpcomputes the cosine of the argument.protected static DfpDfpMath.cosInternal(Dfp[] a) Computes cos(a) Used when 0 invalid input: '<' a invalid input: '<' pi/4.Divide this by divisor.Raises a trap.static DfpComputes e to the given power.protected static DfpDfpMath.expInternal(Dfp a) Computes e to the given power.booleanDfp.greaterThan(Dfp x) Check if instance is greater than x.booleanCheck if instance is less than x.static DfpReturns the natural logarithm of a.protected static Dfp[]DfpMath.logInternal(Dfp[] a) Computes the natural log of a number between 0 and 2.Multiply this by x.Copy constructor.Dfp.newInstance(Dfp d) Create an instance by copying an existing one.DfpDec.newInstance(Dfp d) Create an instance by copying an existing one.Returns the next number greater than this one in the direction of x.Returns the next number greater than this one in the direction of x.static DfpRaises base to the power a by successive squaring.static DfpComputes x to the y power.Returns the IEEE remainder.static Dfpcomputes the sine of the argument.protected static DfpDfpMath.sinInternal(Dfp[] a) Computes sin(a) Used when 0 invalid input: '<' a invalid input: '<' pi/4.protected static Dfp[]protected static Dfp[]Divide two numbers that are split in to two pieces that are meant to be added together.protected static Dfp[]Multiply two numbers that are split in to two pieces that are meant to be added together.protected static DfpRaise a split base to the a power.Subtract x from this.static Dfpcomputes the tangent of the argument.protected DfpTrap handler.booleanCheck if instance is not equal to x.Constructors in org.apache.commons.math.dfp with parameters of type Dfp