T - The type of field element.public interface FieldElement<T> extends Comparable<T>
| Modifier and Type | Method and Description |
|---|---|
double |
abs()
Compute and return the absolute value of this element.
|
T |
additiveInverse()
Return the element of this field that, when added to this element, produces the additive identity.
|
Complex |
complexSqrt()
The square root operation applied to this element, returning a complex number.
|
T |
conjugate()
Compute and return the conjugate of this element.
|
T |
dividedBy(T other)
Divide this element by the given element and return the result.
|
T |
minus(T other)
Subtract the given element from this element.
|
T |
plus(T other)
Add this element to the given element.
|
T |
sqrt()
Computes and returns the square root of this number as long as the square root is of the same
type (i.e., belongs to the same field) as this number.
|
T |
times(T other)
Multiply this element by the given element.
|
compareToT plus(T other)
other - the element to add to this element.T minus(T other)
other - the element to subtract from this element.T times(T other)
other - the element to multiply this element by.Complex complexSqrt()
IllegalStateExceptionIllegalStateException - if the field this element belongs to is not part of the complex hierarchy.T sqrt()
complexSqrt() should be used instead.IllegalStateException - if the square root is not of the same type as this number.T conjugate()
T additiveInverse()
double abs()