public class ApfloatField extends AbstractField<ApfloatField,Apfloat>
The precision of each calculation is determined separately, which means
that loss of precision can easily accumulate in complicated calculations
(e.g. matrix inversion). If this should be avoided, and a fixed precision is
required, then it may be better to use FixedPrecisionApfloatField
instead.
Constructor and Description |
---|
ApfloatField(Apfloat value)
Constructs a new floating-point field object with the specified value.
|
Modifier and Type | Method and Description |
---|---|
ApfloatField |
copy()
Returns a copy of this object.
|
ApfloatField |
inverse()
Returns the multiplicative inverse of this object.
|
ApfloatField |
opposite()
Returns the additive inverse of this object.
|
ApfloatField |
plus(ApfloatField that)
Returns the sum of this object with the one specified.
|
ApfloatField |
times(ApfloatField that)
Returns the product of this object with the one specified.
|
compareTo, doubleValue, equals, hashCode, isLargerThan, longValue, toText, value
byteValue, floatValue, intValue, isGreaterThan, isLessThan, minus, pow, shortValue, toString
public ApfloatField(Apfloat value)
value
- The value.public ApfloatField plus(ApfloatField that)
AbstractField
plus
in interface GroupAdditive<ApfloatField>
plus
in class AbstractField<ApfloatField,Apfloat>
that
- The addend.this + that
public ApfloatField opposite()
AbstractField
opposite
in interface GroupAdditive<ApfloatField>
opposite
in class AbstractField<ApfloatField,Apfloat>
-this
public ApfloatField times(ApfloatField that)
AbstractField
times
in interface GroupMultiplicative<ApfloatField>
times
in interface Ring<ApfloatField>
times
in class AbstractField<ApfloatField,Apfloat>
that
- The multiplicand.this * that
public ApfloatField inverse() throws ArithmeticException
AbstractField
inverse
in interface GroupMultiplicative<ApfloatField>
inverse
in class AbstractField<ApfloatField,Apfloat>
1 / this
ArithmeticException
- If the divisor is zero.public ApfloatField copy()
AbstractField
copy
in interface ValueType
copy
in class AbstractField<ApfloatField,Apfloat>