E - Basic type field uses, e.g. Double or Complex.public abstract class GenericPowerField<E> extends GenericField<E>
E powI(E l, Integer r) method for integer powers.
Subclasses must implement Integer convertToInt(Object l)| Constructor and Description |
|---|
GenericPowerField(E zero,
E one) |
| Modifier and Type | Method and Description |
|---|---|
E |
powG(E l,
E r)
If r is integral (convertToInt returns non-null) call powI
otherwise call powNI
|
protected E |
powI(E l,
java.lang.Integer r) |
abstract E |
powNonInt(E l,
E r)
Called when the power is not an integer
|
add, addG, and, cast, cmp, cmpG, convertFromInt, convertToInt, convertToIntE, div, divG, getOne, getZero, mod, modG, mul, mulG, neg, negG, not, or, pow, sub, subGpublic E powG(E l, E r) throws EvaluationException
powG in class GenericField<E>l - lhs argumentr - rhs argumentEvaluationException - on errorpublic abstract E powNonInt(E l, E r) throws EvaluationException
l - r - EvaluationExceptionprotected E powI(E l, java.lang.Integer r) throws EvaluationException
EvaluationExceptionCopyright © 2018 Singular Systems http://www.singularsys.com/jep