Uses of Class
org.apache.commons.numbers.core.DD
Packages that use DD
Package
Description
Basic utilities.
Field-related utilities.
-
Uses of DD in org.apache.commons.numbers.core
Fields in org.apache.commons.numbers.core declared as DDModifier and TypeFieldDescriptionstatic final DDDD.ONEA double-double number representing one.static final DDDD.ZEROA double-double number representing zero.Methods in org.apache.commons.numbers.core that return DDModifier and TypeMethodDescriptionDD.abs()Returns aDDwhose value is the absolute value of the number(x, xx)This method assumes that the low partxxis the smaller magnitude.DD.add(double y) Returns aDDwhose value is(this + y).Returns aDDwhose value is(this + y).DD.ceil()Returns the smallest (closest to negative infinity)DDvalue that is greater than or equal tothisnumber(x, xx)and is equal to a mathematical integer.DD.divide(double y) Returns aDDwhose value is(this / y).Returns aDDwhose value is(this / y).DD.floor()Returns the largest (closest to positive infinity)DDvalue that is less than or equal tothisnumber(x, xx)and is equal to a mathematical integer.DD.frexp(int[] exp) Convertthisnumberxto fractionalfand integral2^expcomponents.static DDDD.from(BigDecimal x) Creates the double-double number(z, zz)using thedoublerepresentation of the argumentx; the low part is thedoublerepresentation of the round-off error.static DDDD.fromQuotient(double x, double y) Returns aDDwhose value is(x / y).DD.multiply(double y) Returns aDDwhose value isthis * y.DD.multiply(int n) Repeated addition.Returns aDDwhose value isthis * y.DD.negate()Returns aDDwhose value is the negation of both parts of double-double number.static DDDD.of(double x) Creates the double-double number as the value(x, 0).static DDDD.of(int x) Creates the double-double number as the value(x, 0).static DDDD.of(long x) Creates the double-double number with the high part equal to(double) xand the low part equal to any remaining bits.static DDDD.ofDifference(double x, double y) Returns aDDwhose value is(x - y).static DDDD.ofProduct(double x, double y) Returns aDDwhose value is(x * y).static DDDD.ofSquare(double x) Returns aDDwhose value is(x * x).static DDDD.ofSum(double x, double y) Returns aDDwhose value is(x + y).DD.one()Identity element.DD.pow(int n) Computethisnumber(x, xx)raised to the powern.DD.pow(int n, long[] exp) Computethisnumberxraised to the powern.static DDCompute the numberxraised to the powern.DD.reciprocal()Compute the reciprocal ofthis.DD.scalb(int exp) Multiplythisnumber(x, xx)by an integral power of two.DD.sqrt()Compute the square root ofthisnumber(x, xx).DD.square()Returns aDDwhose value isthis * this.DD.subtract(double y) Returns aDDwhose value is(this - y).Returns aDDwhose value is(this - y).DD.zero()Identity element.Methods in org.apache.commons.numbers.core with parameters of type DDModifier and TypeMethodDescriptionReturns aDDwhose value is(this + y).Returns aDDwhose value is(this / y).Returns aDDwhose value isthis * y.static DDCompute the numberxraised to the powern.Returns aDDwhose value is(this - y). -
Uses of DD in org.apache.commons.numbers.field
Methods in org.apache.commons.numbers.field that return DD