public class ApcomplexField extends AbstractField<ApcomplexField,Apcomplex>
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 FixedPrecisionApcomplexField
instead.
Constructor and Description |
---|
ApcomplexField(Apcomplex value)
Constructs a new complex field object with the specified value.
|
Modifier and Type | Method and Description |
---|---|
ApcomplexField |
copy()
Returns a copy of this object.
|
ApcomplexField |
inverse()
Returns the multiplicative inverse of this object.
|
ApcomplexField |
opposite()
Returns the additive inverse of this object.
|
ApcomplexField |
plus(ApcomplexField that)
Returns the sum of this object with the one specified.
|
ApcomplexField |
times(ApcomplexField 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 ApcomplexField(Apcomplex value)
value
- The value.public ApcomplexField plus(ApcomplexField that)
AbstractField
plus
in interface GroupAdditive<ApcomplexField>
plus
in class AbstractField<ApcomplexField,Apcomplex>
that
- The addend.this + that
public ApcomplexField opposite()
AbstractField
opposite
in interface GroupAdditive<ApcomplexField>
opposite
in class AbstractField<ApcomplexField,Apcomplex>
-this
public ApcomplexField times(ApcomplexField that)
AbstractField
times
in interface GroupMultiplicative<ApcomplexField>
times
in interface Ring<ApcomplexField>
times
in class AbstractField<ApcomplexField,Apcomplex>
that
- The multiplicand.this * that
public ApcomplexField inverse() throws ArithmeticException
AbstractField
inverse
in interface GroupMultiplicative<ApcomplexField>
inverse
in class AbstractField<ApcomplexField,Apcomplex>
1 / this
ArithmeticException
- If the divisor is zero.public ApcomplexField copy()
AbstractField
copy
in interface ValueType
copy
in class AbstractField<ApcomplexField,Apcomplex>