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 DD
DD.ONE
A double-double number representing one.static final DD
DD.ZERO
A double-double number representing zero.Methods in org.apache.commons.numbers.core that return DDModifier and TypeMethodDescriptionDD.abs()
Returns aDD
whose value is the absolute value of the number(x, xx)
This method assumes that the low partxx
is the smaller magnitude.(package private) static DD
DD.accurateAdd
(double x, double xx, double y) Compute the sum of(x, xx)
andy
.(package private) static DD
DD.accurateAdd
(double x, double xx, double y, double yy) Compute the sum of(x, xx)
and(y, yy)
.DD.add
(double y) Returns aDD
whose value is(this + y)
.(package private) static DD
DD.add
(double x, double xx, double y, double yy) Compute the sum of(x, xx)
and(y, yy)
.Returns aDD
whose value is(this + y)
.DD.ceil()
Returns the smallest (closest to negative infinity)DD
value that is greater than or equal tothis
number(x, xx)
and is equal to a mathematical integer.private static DD
DD.computePow
(double x, double xx, int n) Compute the numberx
(non-zero finite) raised to the powern
.private static DD
DD.computePowScaled
(long b, double x, double xx, int n, long[] exp) Compute the numberx
(non-zero finite) raised to the powern
.private static DD
DDMath.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 aDD
whose value is(this / y)
.private static DD
DD.divide
(double x, double xx, double y) Compute the division of(x, xx)
byy
.private static DD
DD.divide
(double x, double xx, double y, double yy) Compute the division of(x, xx)
by(y, yy)
.Returns aDD
whose value is(this / y)
.(package private) static DD
DD.fastTwoDiff
(double a, double b) Compute the difference of two numbersa
andb
using Dekker's two-sum algorithm.(package private) static DD
DD.fastTwoSum
(double a, double b) Compute the sum of two numbersa
andb
using Dekker's two-sum algorithm.DD.floor()
Returns the largest (closest to positive infinity)DD
value that is less than or equal tothis
number(x, xx)
and is equal to a mathematical integer.private static DD
DD.floorOrCeil
(double x, double xx, DoubleUnaryOperator op) Implementation of the floor and ceiling functions.DD.frexp
(int[] exp) Convertthis
numberx
to fractionalf
and integral2^exp
components.static DD
DD.from
(BigDecimal x) Creates the double-double number(z, zz)
using thedouble
representation of the argumentx
; the low part is thedouble
representation of the round-off error.static DD
DD.fromQuotient
(double x, double y) Returns aDD
whose value is(x / y)
.private static DD
DDMath.inverse3
(double y, double yy, double yyy) Compute the inverse of(y, yy, yyy)
.DD.multiply
(double y) Returns aDD
whose value isthis * y
.private static DD
DD.multiply
(double x, double xx, double y) Compute the multiplication product of(x, xx)
andy
.private static DD
DD.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 aDD
whose value isthis * y
.DD.negate()
Returns aDD
whose value is the negation of both parts of double-double number.static DD
DD.of
(double x) Creates the double-double number as the value(x, 0)
.(package private) static DD
DD.of
(double x, double xx) Creates the double-double number as the value(x, xx)
.static DD
DD.of
(int x) Creates the double-double number as the value(x, 0)
.static DD
DD.of
(long x) Creates the double-double number with the high part equal to(double) x
and the low part equal to any remaining bits.static DD
DD.ofDifference
(double x, double y) Returns aDD
whose value is(x - y)
.static DD
DD.ofProduct
(double x, double y) Returns aDD
whose value is(x * y)
.static DD
DD.ofSquare
(double x) Returns aDD
whose value is(x * x)
.static DD
DD.ofSum
(double x, double y) Returns aDD
whose value is(x + y)
.DD.one()
Identity element.DD.pow
(int n) Computethis
number(x, xx)
raised to the powern
.DD.pow
(int n, long[] exp) Computethis
numberx
raised to the powern
.static DD
Compute the numberx
raised to the powern
.DD.reciprocal()
Compute the reciprocal ofthis
.private static DD
DD.reciprocal
(double y, double yy) Compute the inverse of(y, yy)
.DD.scalb
(int exp) Multiplythis
number(x, xx)
by an integral power of two.DD.sqrt()
Compute the square root ofthis
number(x, xx)
.DD.square()
Returns aDD
whose value isthis * this
.private static DD
DD.square
(double x, double xx) Compute the square of(x, xx)
.DD.subtract
(double y) Returns aDD
whose value is(this - y)
.Returns aDD
whose value is(this - y)
.(package private) static DD
DD.twoDiff
(double a, double b) Compute the difference of two numbersa
andb
using Knuth's two-sum algorithm.(package private) static DD
DD.twoProd
(double x, double y) Compute the double-double number(z,zz)
for the exact product ofx
andy
.(package private) static DD
DD.twoSquare
(double x) Compute the double-double number(z,zz)
for the exact square ofx
.(package private) static DD
DD.twoSum
(double a, double b) Compute the sum of two numbersa
andb
using Knuth's two-sum algorithm.DD.zero()
Identity element.Methods in org.apache.commons.numbers.core with parameters of type DDModifier and TypeMethodDescriptionReturns aDD
whose value is(this + y)
.Returns aDD
whose value is(this / y)
.Returns aDD
whose value isthis * y
.static DD
Compute the numberx
raised to the powern
.Returns aDD
whose value is(this - y)
. -
Uses of DD in org.apache.commons.numbers.field
Methods in org.apache.commons.numbers.field that return DD