Package jscl.math
Class JSCLInteger
java.lang.Object
jscl.math.Generic
jscl.math.JSCLInteger
- All Implemented Interfaces:
Comparable,jscl.editor.rendering.MathObject,Arithmetic
- Direct Known Subclasses:
ModularInteger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(JSCLInteger integer) antiderivative(Variable variable) intintcompareTo(JSCLInteger integer) content()intdegree()derivative(Variable variable) Generic[]divideAndRemainder(Generic generic) divideAndRemainder(JSCLInteger integer) eval()expand()factorial(int k) gcd()gcd(JSCLInteger integer) integerDivide(JSCLInteger integer) intintValue()booleanisConstant(Variable variable) booleanisPolynomial(Variable variable) mod(JSCLInteger integer) modInverse(JSCLInteger integer) modPow(JSCLInteger exponent, JSCLInteger integer) booleanmultiply(JSCLInteger integer) negate()protected JSCLIntegernewinstance(BigInteger content) nthrt(int n) numeric()phi()pow(int exponent) Generic[]remainder(JSCLInteger integer) intsignum()simplify()sqrt()substitute(Variable variable, Generic generic) subtract(JSCLInteger integer) Generic[]sumValue()toMathML()toString()static JSCLIntegervalueOf(long val) static JSCLIntegerVariable[]Methods inherited from class jscl.math.Generic
abs, add, booleanValue, compareTo, divide, equals, gcdAndNormalize, inverse, isIdentity, isOne, isZero, multiply, normalize, pow, scm, subtract, vectorValue
-
Field Details
-
factory
-
-
Constructor Details
-
JSCLInteger
-
-
Method Details
-
content
-
add
-
add
-
subtract
-
subtract
-
multiply
-
multiply
-
multiple
- Overrides:
multiplein classGeneric- Throws:
ArithmeticException
-
integerDivide
- Throws:
ArithmeticException
-
divide
- Specified by:
dividein classGeneric- Throws:
ArithmeticException
-
divideAndRemainder
- Throws:
ArithmeticException
-
divideAndRemainder
- Overrides:
divideAndRemainderin classGeneric- Throws:
ArithmeticException
-
remainder
- Throws:
ArithmeticException
-
remainder
- Overrides:
remainderin classGeneric- Throws:
ArithmeticException
-
gcd
-
gcd
-
gcd
-
pow
-
negate
-
signum
public int signum() -
degree
public int degree() -
factorial
-
factorial
-
mod
-
modPow
-
modInverse
-
phi
-
primitiveRoots
-
sqrt
-
nthrt
-
antiderivative
- Specified by:
antiderivativein classGeneric
-
derivative
- Specified by:
derivativein classGeneric
-
substitute
- Specified by:
substitutein classGeneric
-
eval
-
expand
-
factorize
-
elementary
- Specified by:
elementaryin classGeneric
-
simplify
-
function
-
numeric
-
valueof
-
sumValue
-
productValue
- Specified by:
productValuein classGeneric
-
powerValue
- Specified by:
powerValuein classGeneric- Throws:
NotPowerException
-
expressionValue
- Specified by:
expressionValuein classGeneric
-
integerValue
- Specified by:
integerValuein classGeneric
-
variableValue
- Specified by:
variableValuein classGeneric- Throws:
NotVariableException
-
variables
-
isPolynomial
- Specified by:
isPolynomialin classGeneric
-
isConstant
- Specified by:
isConstantin classGeneric
-
intValue
public int intValue() -
compareTo
-
compareTo
-
valueOf
-
valueOf
-
toString
-
toMathML
-
newinstance
-