Class DoubleField
java.lang.Object
com.singularsys.extensions.field.implementations.DoubleField
- All Implemented Interfaces:
FieldI,IntegerConvertor,Serializable
A double field where all input must be double and all output is double.
- Author:
- Richard Morris
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd two members of the field.Logical and.Attempt to convert argument from an integerAttempt to convert argument to an integerDivides two members of the field.EqualsGreater or equal togetOne()Get the multiplicative identity for this field.getZero()Get the additive identity for this fieldGreater thanLess than or equals toLess thanThe modulus of two members of the field.Multiplies two members of the field.Not EqualsThe negation -x of an element.Logical not.Logical or.If l>=0 calls Math.pow, if l<0 (i.e. when the result would be complex) return null.Subtract two members of the field.
-
Constructor Details
-
DoubleField
public DoubleField()
-
-
Method Details
-
add
Description copied from interface:FieldIAdd two members of the field. -
sub
Description copied from interface:FieldISubtract two members of the field. -
neg
Description copied from interface:FieldIThe negation -x of an element. -
mul
Description copied from interface:FieldIMultiplies two members of the field. -
div
Description copied from interface:FieldIDivides two members of the field. -
mod
Description copied from interface:FieldIThe modulus of two members of the field. -
pow
If l>=0 calls Math.pow, if l<0 (i.e. when the result would be complex) return null. Integral exponents are handled by the powI method. -
powG
-
eq
Description copied from interface:FieldIEquals -
ne
Description copied from interface:FieldINot Equals -
gt
Description copied from interface:FieldIGreater than -
ge
Description copied from interface:FieldIGreater or equal to -
lt
Description copied from interface:FieldILess than -
le
Description copied from interface:FieldILess than or equals to -
and
Description copied from interface:FieldILogical and. -
or
Description copied from interface:FieldILogical or. -
not
Description copied from interface:FieldILogical not. -
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
-
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
-