public class LongField extends GenericPowerField<java.lang.Long>
one, zero| Constructor and Description |
|---|
LongField() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
addG(java.lang.Long l,
java.lang.Long r)
Adds two elements of type E.
|
java.lang.Long |
cast(java.lang.Object l)
Convert the input to type E.
|
java.lang.Integer |
cmpG(java.lang.Long l,
java.lang.Long r)
Compare two objects of the same type.
|
java.lang.Long |
convertFromInt(java.lang.Integer l)
Attempt to convert argument from an integer
|
java.lang.Integer |
convertToIntE(java.lang.Long l)
If possible convert the argument to an Integer to enable integral powers.
|
java.lang.Long |
divG(java.lang.Long l,
java.lang.Long r)
Divides two elements of type E.
|
java.lang.Long |
getOne()
Get the multiplicative identity for this field.
|
java.lang.Long |
getZero()
Get the additive identity for this field
|
java.lang.Long |
modG(java.lang.Long l,
java.lang.Long r)
Modulus of two elements of type E.
|
java.lang.Long |
mulG(java.lang.Long l,
java.lang.Long r)
Multiplies two elements of type E.
|
java.lang.Long |
negG(java.lang.Long l)
Negates an elements of type E.
|
static long |
power(long l,
long r) |
java.lang.Long |
powNonInt(java.lang.Long l,
java.lang.Long r)
Called when the power is not an integer
|
java.lang.Long |
subG(java.lang.Long l,
java.lang.Long r)
Subtracts two elements of type E.
|
powG, powIadd, and, cmp, convertToInt, div, mod, mul, neg, not, or, pow, subpublic java.lang.Long addG(java.lang.Long l,
java.lang.Long r)
throws EvaluationException
GenericFieldaddG in class GenericField<java.lang.Long>l - lhs argumentr - rhs argumentEvaluationException - on errorpublic java.lang.Integer cmpG(java.lang.Long l,
java.lang.Long r)
throws EvaluationException
GenericFieldcmpG in class GenericField<java.lang.Long>l - left argumentr - right argumentEvaluationExceptionpublic java.lang.Long cast(java.lang.Object l)
GenericFieldcast in class GenericField<java.lang.Long>public java.lang.Long divG(java.lang.Long l,
java.lang.Long r)
throws EvaluationException
GenericFielddivG in class GenericField<java.lang.Long>l - numeratorr - denominatorEvaluationException - on errorpublic java.lang.Long modG(java.lang.Long l,
java.lang.Long r)
throws EvaluationException
GenericFieldmodG in class GenericField<java.lang.Long>l - lhs argumentr - rhs argumentEvaluationException - on errorpublic java.lang.Long mulG(java.lang.Long l,
java.lang.Long r)
throws EvaluationException
GenericFieldmulG in class GenericField<java.lang.Long>l - lhs argumentr - rhs argumentEvaluationException - on errorpublic java.lang.Long negG(java.lang.Long l)
throws EvaluationException
GenericFieldnegG in class GenericField<java.lang.Long>l - the argumentEvaluationException - on errorpublic java.lang.Long powNonInt(java.lang.Long l,
java.lang.Long r)
throws EvaluationException
GenericPowerFieldpowNonInt in class GenericPowerField<java.lang.Long>EvaluationExceptionpublic java.lang.Long subG(java.lang.Long l,
java.lang.Long r)
throws EvaluationException
GenericFieldsubG in class GenericField<java.lang.Long>l - lhs argumentr - rhs argumentEvaluationException - on errorpublic static long power(long l,
long r)
public java.lang.Integer convertToIntE(java.lang.Long l)
throws EvaluationException
GenericFieldpowG(E,E)
method will be called.convertToIntE in class GenericField<java.lang.Long>l - argument to convert.EvaluationExceptionpublic java.lang.Long convertFromInt(java.lang.Integer l)
throws EvaluationException
IntegerConvertorconvertFromInt in interface IntegerConvertorconvertFromInt in class GenericField<java.lang.Long>l - value to convertEvaluationExceptionpublic java.lang.Long getOne()
FieldIgetOne in interface FieldIgetOne in class GenericField<java.lang.Long>public java.lang.Long getZero()
FieldIgetZero in interface FieldIgetZero in class GenericField<java.lang.Long>Copyright © 2018 Singular Systems http://www.singularsys.com/jep