Package jscl.math
Class Generic
java.lang.Object
jscl.math.Generic
- All Implemented Interfaces:
Comparable,jscl.editor.rendering.MathObject,Arithmetic
- Direct Known Subclasses:
Expression,Function,JSCLInteger,JSCLVector,Matrix,ModularInteger,NumericWrapper,Rational
public abstract class Generic
extends Object
implements Arithmetic, Comparable, jscl.editor.rendering.MathObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabs()add(Arithmetic arithmetic) abstract Genericabstract Genericantiderivative(Variable variable) intabstract intabstract intdegree()abstract Genericderivative(Variable variable) divide(Arithmetic arithmetic) abstract GenericGeneric[]divideAndRemainder(Generic generic) abstract Genericbooleanabstract Genericeval()abstract Genericexpand()abstract Expressionabstract Genericabstract Genericabstract Genericgcd()abstract GenericGeneric[]abstract JSCLIntegerinverse()abstract booleanisConstant(Variable variable) booleanisIdentity(Variable variable) booleanisOne()abstract booleanisPolynomial(Variable variable) booleanisZero()booleanmultiply(Arithmetic arithmetic) abstract Genericabstract Genericnegate()abstract Genericnumeric()pow(int exponent) pow(JSCLInteger exponent) abstract Powerabstract Generic[]abstract intsignum()abstract Genericsimplify()abstract Genericsubstitute(Variable variable, Generic generic) subtract(Arithmetic arithmetic) abstract Generic[]sumValue()abstract StringtoMathML()abstract Genericabstract Variable[]abstract Variable
-
Constructor Details
-
Generic
public Generic()
-
-
Method Details
-
add
-
subtract
-
multiply
-
multiple
- Throws:
ArithmeticException
-
divide
- Throws:
ArithmeticException
-
add
- Specified by:
addin interfaceArithmetic
-
subtract
- Specified by:
subtractin interfaceArithmetic
-
multiply
- Specified by:
multiplyin interfaceArithmetic
-
divide
- Specified by:
dividein interfaceArithmetic- Throws:
ArithmeticException
-
divideAndRemainder
- Throws:
ArithmeticException
-
remainder
- Throws:
ArithmeticException
-
inverse
-
gcd
-
scm
-
gcd
-
gcdAndNormalize
-
normalize
-
pow
-
pow
-
abs
-
negate
-
signum
public abstract int signum() -
degree
public abstract int degree() -
antiderivative
- Throws:
NotIntegrableException
-
derivative
-
substitute
-
function
-
eval
-
expand
-
factorize
-
elementary
-
simplify
-
numeric
-
valueof
-
sumValue
-
productValue
- Throws:
NotProductException
-
powerValue
- Throws:
NotPowerException
-
expressionValue
- Throws:
NotExpressionException
-
integerValue
- Throws:
NotIntegerException
-
booleanValue
- Throws:
NotBooleanException
-
vectorValue
- Throws:
NotVectorException
-
variableValue
- Throws:
NotVariableException
-
variables
-
isPolynomial
-
isConstant
-
isZero
public boolean isZero() -
isOne
public boolean isOne() -
isIdentity
-
compareTo
-
compareTo
- Specified by:
compareToin interfaceComparable
-
equals
-
toMathML
- Specified by:
toMathMLin interfacejscl.editor.rendering.MathObject
-