Package jscl.math
Class NumericWrapper
- java.lang.Object
-
- jscl.math.Generic
-
- jscl.math.NumericWrapper
-
- All Implemented Interfaces:
java.lang.Comparable,jscl.editor.rendering.MathObject,Arithmetic
public final class NumericWrapper extends Generic
-
-
Constructor Summary
Constructors Constructor Description NumericWrapper(Constant constant)NumericWrapper(JSCLInteger integer)NumericWrapper(JSCLVector vector)NumericWrapper(Matrix matrix)NumericWrapper(Numeric numeric)NumericWrapper(Rational rational)
-
Method Summary
-
Methods inherited from class jscl.math.Generic
add, booleanValue, compareTo, divide, divideAndRemainder, equals, gcdAndNormalize, inverse, isIdentity, isOne, isZero, multiple, multiply, normalize, pow, pow, remainder, scm, subtract, vectorValue
-
-
-
-
Constructor Detail
-
NumericWrapper
public NumericWrapper(JSCLInteger integer)
-
NumericWrapper
public NumericWrapper(Rational rational)
-
NumericWrapper
public NumericWrapper(JSCLVector vector)
-
NumericWrapper
public NumericWrapper(Matrix matrix)
-
NumericWrapper
public NumericWrapper(Constant constant)
-
NumericWrapper
public NumericWrapper(Numeric numeric)
-
-
Method Detail
-
content
public Numeric content()
-
add
public NumericWrapper add(NumericWrapper wrapper)
-
subtract
public NumericWrapper subtract(NumericWrapper wrapper)
-
multiply
public NumericWrapper multiply(NumericWrapper wrapper)
-
divide
public NumericWrapper divide(NumericWrapper wrapper) throws java.lang.ArithmeticException
- Throws:
java.lang.ArithmeticException
-
antiderivative
public Generic antiderivative(Variable variable) throws NotIntegrableException
- Specified by:
antiderivativein classGeneric- Throws:
NotIntegrableException
-
derivative
public Generic derivative(Variable variable)
- Specified by:
derivativein classGeneric
-
substitute
public Generic substitute(Variable variable, Generic generic)
- Specified by:
substitutein classGeneric
-
elementary
public Generic elementary()
- Specified by:
elementaryin classGeneric
-
valueof
public NumericWrapper valueof(NumericWrapper wrapper)
-
productValue
public Generic[] productValue() throws NotProductException
- Specified by:
productValuein classGeneric- Throws:
NotProductException
-
powerValue
public Power powerValue() throws NotPowerException
- Specified by:
powerValuein classGeneric- Throws:
NotPowerException
-
expressionValue
public Expression expressionValue() throws NotExpressionException
- Specified by:
expressionValuein classGeneric- Throws:
NotExpressionException
-
integerValue
public JSCLInteger integerValue() throws NotIntegerException
- Specified by:
integerValuein classGeneric- Throws:
NotIntegerException
-
variableValue
public Variable variableValue() throws NotVariableException
- Specified by:
variableValuein classGeneric- Throws:
NotVariableException
-
isPolynomial
public boolean isPolynomial(Variable variable)
- Specified by:
isPolynomialin classGeneric
-
isConstant
public boolean isConstant(Variable variable)
- Specified by:
isConstantin classGeneric
-
log
public Generic log()
-
exp
public Generic exp()
-
sqrt
public Generic sqrt()
-
nthrt
public Generic nthrt(int n)
-
conjugate
public Generic conjugate()
-
acos
public Generic acos()
-
asin
public Generic asin()
-
atan
public Generic atan()
-
acot
public Generic acot()
-
cos
public Generic cos()
-
sin
public Generic sin()
-
tan
public Generic tan()
-
cot
public Generic cot()
-
acosh
public Generic acosh()
-
asinh
public Generic asinh()
-
atanh
public Generic atanh()
-
acoth
public Generic acoth()
-
cosh
public Generic cosh()
-
sinh
public Generic sinh()
-
tanh
public Generic tanh()
-
coth
public Generic coth()
-
compareTo
public int compareTo(NumericWrapper wrapper)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toMathML
public java.lang.String toMathML()
-
newinstance
protected Generic newinstance()
-
-