Package jscl.math.function
Class Constant
- java.lang.Object
-
- jscl.math.Variable
-
- jscl.math.function.Constant
-
- All Implemented Interfaces:
java.lang.Comparable,jscl.editor.rendering.MathObject
public class Constant extends Variable
-
-
Field Summary
Fields Modifier and Type Field Description static Genericestatic Generichalfstatic Genericistatic Genericinfinitystatic Genericjstatic Genericjbarstatic Genericpiprotected intprimeprotected Generic[]subscriptstatic Genericthird-
Fields inherited from class jscl.math.Variable
comparator, name
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Genericantiderivative(Variable variable)java.lang.StringbodyToMathML()intcompareTo(Variable variable)Genericderivative(Variable variable)Genericelementary()Genericexpand()Genericfactorize()Genericfunction(Variable variable)booleanisConstant(Variable variable)protected Variablenewinstance()Genericnumeric()NumericnumericValue()intprime()Genericsimplify()Generic[]subscript()Genericsubstitute(Variable variable, Generic generic)java.lang.StringtoMathML()java.lang.StringtoString()-
Methods inherited from class jscl.math.Variable
compareTo, equals, expressionValue, isIdentity, nameToMathML
-
-
-
-
Field Detail
-
e
public static final Generic e
-
pi
public static final Generic pi
-
i
public static final Generic i
-
half
public static final Generic half
-
third
public static final Generic third
-
j
public static final Generic j
-
jbar
public static final Generic jbar
-
infinity
public static final Generic infinity
-
prime
protected int prime
-
subscript
protected Generic[] subscript
-
-
Constructor Detail
-
Constant
public Constant(java.lang.String name)
-
Constant
public Constant(java.lang.String name, int prime)
-
Constant
public Constant(java.lang.String name, int prime, Generic[] subscript)
-
-
Method Detail
-
prime
public int prime()
-
subscript
public Generic[] subscript()
-
antiderivative
public Generic antiderivative(Variable variable) throws NotIntegrableException
- Specified by:
antiderivativein classVariable- Throws:
NotIntegrableException
-
derivative
public Generic derivative(Variable variable)
- Specified by:
derivativein classVariable
-
substitute
public Generic substitute(Variable variable, Generic generic)
- Specified by:
substitutein classVariable
-
elementary
public Generic elementary()
- Specified by:
elementaryin classVariable
-
numericValue
public Numeric numericValue()
-
isConstant
public boolean isConstant(Variable variable)
- Specified by:
isConstantin classVariable
-
toMathML
public java.lang.String toMathML()
-
bodyToMathML
public java.lang.String bodyToMathML()
-
newinstance
protected Variable newinstance()
- Specified by:
newinstancein classVariable
-
-