Interface RealFieldElement<T>
- Type Parameters:
T- the type of the field elements
- All Superinterfaces:
FieldElement<T>
- All Known Implementing Classes:
Decimal64, DerivativeStructure, Dfp, DfpDec, SparseGradient
- Since:
- 3.2
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionabs()absolute value.acos()Arc cosine operation.acosh()Inverse hyperbolic cosine operation.add(double a) '+' operator.asin()Arc sine operation.asinh()Inverse hyperbolic sine operation.atan()Arc tangent operation.Two arguments arc tangent operation.atanh()Inverse hyperbolic tangent operation.cbrt()Cubic root.ceil()Get the smallest whole number larger than instance.copySign(double sign) Returns the instance with the sign of the argument.Returns the instance with the sign of the argument.cos()Cosine operation.cosh()Hyperbolic cosine operation.divide(double a) '÷' operator.exp()Exponential.expm1()Exponential minus 1.floor()Get the largest whole number smaller than instance.doublegetReal()Get the real value of the number.Returns the hypotenuse of a triangle with sidesthisandy- sqrt(this2 +y2) avoiding intermediate overflow or underflow.linearCombination(double[] a, T[] b) Compute a linear combination.linearCombination(double a1, T b1, double a2, T b2) Compute a linear combination.linearCombination(double a1, T b1, double a2, T b2, double a3, T b3) Compute a linear combination.linearCombination(double a1, T b1, double a2, T b2, double a3, T b3, double a4, T b4) Compute a linear combination.linearCombination(T[] a, T[] b) Compute a linear combination.linearCombination(T a1, T b1, T a2, T b2) Compute a linear combination.Compute a linear combination.Compute a linear combination.log()Natural logarithm.log1p()Shifted natural logarithm.multiply(double a) '×' operator.pow(double p) Power operation.pow(int n) Integer power operation.Power operation.Returns the multiplicative inverse ofthiselement.remainder(double a) IEEE remainder operator.IEEE remainder operator.rint()Get the whole number that is the nearest to the instance, or the even one if x is exactly half way between two integers.rootN(int n) Nth root.longround()Get the closest long to instance value.scalb(int n) Multiply the instance by a power of 2.signum()Compute the signum of the instance.sin()Sine operation.sinh()Hyperbolic sine operation.sqrt()Square root.subtract(double a) '-' operator.tan()Tangent operation.tanh()Hyperbolic tangent operation.
-
Method Details
-
getReal
-
add
-
subtract
-
multiply
-
divide
-
remainder
-
remainder
IEEE remainder operator.- Parameters:
a- right hand side parameter of the operator- Returns:
- this - n × a where n is the closest integer to this/a (the even integer is chosen for n if this/a is halfway between two integers)
- Throws:
DimensionMismatchException- if number of free parameters or orders are inconsistent
-
abs
-
ceil
-
floor
-
rint
-
round
-
signum
-
copySign
-
copySign
-
scalb
-
hypot
Returns the hypotenuse of a triangle with sidesthisandy- sqrt(this2 +y2) avoiding intermediate overflow or underflow.- If either argument is infinite, then the result is positive infinity.
- else, if either argument is NaN then the result is NaN.
- Parameters:
y- a value- Returns:
- sqrt(this2 +y2)
- Throws:
DimensionMismatchException- if number of free parameters or orders are inconsistent
-
reciprocal
T reciprocal()Returns the multiplicative inverse ofthiselement.- Specified by:
reciprocalin interfaceFieldElement<T>- Returns:
- the inverse of
this.
-
sqrt
-
cbrt
-
rootN
-
pow
-
pow
-
pow
Power operation.- Parameters:
e- exponent- Returns:
- thise
- Throws:
DimensionMismatchException- if number of free parameters or orders are inconsistent
-
exp
-
expm1
-
log
-
log1p
-
cos
-
sin
-
tan
-
acos
-
asin
-
atan
-
atan2
Two arguments arc tangent operation.- Parameters:
x- second argument of the arc tangent- Returns:
- atan2(this, x)
- Throws:
DimensionMismatchException- if number of free parameters or orders are inconsistent
-
cosh
-
sinh
-
tanh
-
acosh
-
asinh
-
atanh
-
linearCombination
Compute a linear combination.- Parameters:
a- Factors.b- Factors.- Returns:
Σi ai bi.- Throws:
DimensionMismatchException- if arrays dimensions don't match- Since:
- 3.2
-
linearCombination
Compute a linear combination.- Parameters:
a- Factors.b- Factors.- Returns:
Σi ai bi.- Throws:
DimensionMismatchException- if arrays dimensions don't match- Since:
- 3.2
-
linearCombination
-
linearCombination
Compute a linear combination.- Parameters:
a1- first factor of the first termb1- second factor of the first terma2- first factor of the second termb2- second factor of the second term- Returns:
- a1×b1 + a2×b2
- Since:
- 3.2
- See Also:
-
linearCombination
Compute a linear combination.- Parameters:
a1- first factor of the first termb1- second factor of the first terma2- first factor of the second termb2- second factor of the second terma3- first factor of the third termb3- second factor of the third term- Returns:
- a1×b1 + a2×b2 + a3×b3
- Since:
- 3.2
- See Also:
-
linearCombination
Compute a linear combination.- Parameters:
a1- first factor of the first termb1- second factor of the first terma2- first factor of the second termb2- second factor of the second terma3- first factor of the third termb3- second factor of the third term- Returns:
- a1×b1 + a2×b2 + a3×b3
- Since:
- 3.2
- See Also:
-
linearCombination
Compute a linear combination.- Parameters:
a1- first factor of the first termb1- second factor of the first terma2- first factor of the second termb2- second factor of the second terma3- first factor of the third termb3- second factor of the third terma4- first factor of the third termb4- second factor of the third term- Returns:
- a1×b1 + a2×b2 + a3×b3 + a4×b4
- Since:
- 3.2
- See Also:
-
linearCombination
Compute a linear combination.- Parameters:
a1- first factor of the first termb1- second factor of the first terma2- first factor of the second termb2- second factor of the second terma3- first factor of the third termb3- second factor of the third terma4- first factor of the third termb4- second factor of the third term- Returns:
- a1×b1 + a2×b2 + a3×b3 + a4×b4
- Since:
- 3.2
- See Also:
-