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.(package private) static DDDD.accurateAdd(double x, double xx, double y) Compute the sum of(x, xx)andy.(package private) static DDDD.accurateAdd(double x, double xx, double y, double yy) Compute the sum of(x, xx)and(y, yy).DD.add(double y) Returns aDDwhose value is(this + y).(package private) static DDDD.add(double x, double xx, double y, double yy) Compute the sum of(x, xx)and(y, yy).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.private static DDDD.computePow(double x, double xx, int n) Compute the numberx(non-zero finite) raised to the powern.private static DDDD.computePowScaled(long b, double x, double xx, int n, long[] exp) Compute the numberx(non-zero finite) raised to the powern.private static DDDDMath.computePowScaled(long b, double x, double xx, int n, long[] exp) Compute the numberx(non-zero finite) raised to the powern.DD.divide(double y) Returns aDDwhose value is(this / y).private static DDDD.divide(double x, double xx, double y) Compute the division of(x, xx)byy.private static DDDD.divide(double x, double xx, double y, double yy) Compute the division of(x, xx)by(y, yy).Returns aDDwhose value is(this / y).(package private) static DDDD.fastTwoDiff(double a, double b) Compute the difference of two numbersaandbusing Dekker's two-sum algorithm.(package private) static DDDD.fastTwoSum(double a, double b) Compute the sum of two numbersaandbusing Dekker's two-sum algorithm.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.private static DDDD.floorOrCeil(double x, double xx, DoubleUnaryOperator op) Implementation of the floor and ceiling functions.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).private static DDDDMath.inverse3(double y, double yy, double yyy) Compute the inverse of(y, yy, yyy).DD.multiply(double y) Returns aDDwhose value isthis * y.private static DDDD.multiply(double x, double xx, double y) Compute the multiplication product of(x, xx)andy.private static DDDD.multiply(double x, double xx, double y, double yy) Compute the multiplication product of(x, xx)and(y, yy).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).(package private) static DDDD.of(double x, double xx) Creates the double-double number as the value(x, xx).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.private static DDDD.reciprocal(double y, double yy) Compute the inverse of(y, yy).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.private static DDDD.square(double x, double xx) Compute the square of(x, xx).DD.subtract(double y) Returns aDDwhose value is(this - y).Returns aDDwhose value is(this - y).(package private) static DDDD.twoDiff(double a, double b) Compute the difference of two numbersaandbusing Knuth's two-sum algorithm.(package private) static DDDD.twoProd(double x, double y) Compute the double-double number(z,zz)for the exact product ofxandy.(package private) static DDDD.twoSquare(double x) Compute the double-double number(z,zz)for the exact square ofx.(package private) static DDDD.twoSum(double a, double b) Compute the sum of two numbersaandbusing Knuth's two-sum algorithm.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