Class ComplexFieldWithRealOrder
java.lang.Object
com.singularsys.extensions.field.implementations.ComplexFieldWithRealOrder
- All Implemented Interfaces:
FieldI,IntegerConvertor,Serializable
A Field which operates on Complex objects.
When both values are real comparison operators are as for real.
Does not extend GenericField as a comparative methods cannot be defined.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd two members of the field.Not implemented for this field.Attempt to convert argument from an integerAttempt to convert argument to an integerDivides two members of the field.EqualsComparison when both arguments are Complex numbers with zero imaginary componentsgetOne()Get the multiplicative identity for this field.getZero()Get the additive identity for this fieldComparison when both arguments are Complex numbers with zero imaginary componentsComparison when both arguments are Complex numbers with zero imaginary componentsComparison when both arguments are Complex numbers with zero imaginary componentsNot implemented for this field.Multiplies two members of the field.Not EqualsThe negation -x of an element.Not implemented for this field.Not implemented for this field.The power operator.Subtract two members of the field.
-
Constructor Details
-
ComplexFieldWithRealOrder
public ComplexFieldWithRealOrder()
-
-
Method Details
-
add
Description copied from interface:FieldIAdd two members of the field. -
neg
Description copied from interface:FieldIThe negation -x of an element. -
sub
Description copied from interface:FieldISubtract two members of the field. -
div
Description copied from interface:FieldIDivides two members of the field. -
mod
Not implemented for this field. -
mul
Description copied from interface:FieldIMultiplies two members of the field. -
pow
Description copied from interface:FieldIThe power operator. -
eq
Description copied from interface:FieldIEquals -
ne
Description copied from interface:FieldINot Equals -
and
Not implemented for this field. -
or
Not implemented for this field. -
not
Not implemented for this field. -
gt
Comparison when both arguments are Complex numbers with zero imaginary components -
ge
Comparison when both arguments are Complex numbers with zero imaginary components -
lt
Comparison when both arguments are Complex numbers with zero imaginary components -
le
Comparison when both arguments are Complex numbers with zero imaginary components -
getOne
Description copied from interface:FieldIGet the multiplicative identity for this field. -
getZero
Description copied from interface:FieldIGet the additive identity for this field -
convertToInt
Description copied from interface:IntegerConvertorAttempt to convert argument to an integer- Specified by:
convertToIntin interfaceIntegerConvertor- Parameters:
l- value to convert- Returns:
- corresponding integer or null if it cannot be converted
- Throws:
EvaluationException- on error
-
convertFromInt
Description copied from interface:IntegerConvertorAttempt to convert argument from an integer- Specified by:
convertFromIntin interfaceIntegerConvertor- Parameters:
l- value to convert- Returns:
- corresponding value in this field or null if it cannot be converted
- Throws:
EvaluationException- probably never
-