Package jscl.math.polynomial
Class ModularInteger
java.lang.Object
jscl.math.Generic
jscl.math.polynomial.ModularInteger
- All Implemented Interfaces:
Comparable,jscl.editor.rendering.MathObject,Arithmetic,Field
- Direct Known Subclasses:
JSCLBoolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(ModularInteger integer) antiderivative(Variable variable) intintcompareTo(ModularInteger integer) intcontent()intdegree()derivative(Variable variable) eval()expand()static ModularIntegerfactory(int modulo) gcd()inverse()booleanisConstant(Variable variable) booleanisPolynomial(Variable variable) intmodulo()multiply(ModularInteger integer) negate()protected ModularIntegernewinstance(long content) numeric()Generic[]intsignum()simplify()substitute(Variable variable, Generic generic) subtract(ModularInteger integer) Generic[]sumValue()toMathML()toString()static ModularIntegervalueOf(int content, int modulo) Variable[]Methods inherited from class jscl.math.Generic
abs, add, booleanValue, compareTo, divide, divideAndRemainder, equals, gcdAndNormalize, isIdentity, isOne, isZero, multiple, multiply, normalize, pow, pow, remainder, scm, subtract, vectorValue
-
Constructor Details
-
ModularInteger
public ModularInteger(long content, int modulo)
-
-
Method Details
-
content
public int content() -
modulo
public int modulo() -
add
-
add
-
subtract
-
subtract
-
multiply
-
multiply
-
divide
- Specified by:
dividein classGeneric- Throws:
ArithmeticException
-
inverse
-
gcd
-
gcd
-
negate
-
signum
public int signum() -
degree
public int degree() -
antiderivative
- Specified by:
antiderivativein classGeneric
-
derivative
- Specified by:
derivativein classGeneric
-
substitute
- Specified by:
substitutein classGeneric
-
function
-
eval
-
expand
-
factorize
-
elementary
- Specified by:
elementaryin classGeneric
-
simplify
-
numeric
-
valueof
-
sumValue
-
productValue
- Specified by:
productValuein classGeneric
-
powerValue
- Specified by:
powerValuein classGeneric
-
expressionValue
- Specified by:
expressionValuein classGeneric
-
integerValue
- Specified by:
integerValuein classGeneric
-
variableValue
- Specified by:
variableValuein classGeneric
-
variables
-
isPolynomial
- Specified by:
isPolynomialin classGeneric
-
isConstant
- Specified by:
isConstantin classGeneric
-
compareTo
-
compareTo
-
valueOf
-
factory
-
toString
-
toMathML
-
newinstance
-