Modifier and Type | Class and Description |
---|---|
(package private) class |
Variable.VariableSimplifier
Simplify a variable.
|
Function.DefaultSimplifier
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
name
Variable name
|
private Variable.VariableSimplifier |
variableSimplifier
The variable simplifier instance
|
COMPARATOR, references
Constructor and Description |
---|
Variable(java.lang.String name)
Create a variable
|
Modifier and Type | Method and Description |
---|---|
protected int |
compareToInternal(Function function)
Internal comparison
Parent documentation: Internal comparison |
Function |
derive(Variable variable)
Derive the function
|
boolean |
functionIsEquals(Function function)
Indicates if a function is equals to this function
|
Function |
getCopy()
Copy the function
|
java.lang.String |
getName()
Variable name
|
boolean |
isRealValueNumber()
Indicates if function can see as real number, that is to say that the value of
obtainRealValueNumber() as as
meaning |
FunctionSimplifier |
obtainFunctionSimplifier()
Simplify the variable.
|
double |
obtainRealValueNumber()
Real value of function, if the function can be represents by a real number.
|
Function |
replace(Variable variable,
Function function)
Replace variable by function
|
java.lang.String |
toString()
String that represents the function
|
VariableList |
variableList()
Variable list contains in this function
|
allEquals, compareTo, createAddition, createMultiplication, derive, derive, derive, equals, functionIsEqualsMoreSimple, getArgument, parse, realString, replace, replace, replace, setConstantsReferences, simplify, simplifyMaximum, simplifyMaximum, totalDerive
private Variable.VariableSimplifier variableSimplifier
final java.lang.String name
public Variable(java.lang.String name)
name
- Variable nameprotected int compareToInternal(Function function)
compareToInternal
in class Function
function
- Function sure be the instance of the functionFunction.compareToInternal(jhelp.util.math.formal.Function)
public Function derive(Variable variable)
derive
in class Function
variable
- Variable for deriveFunction.derive(jhelp.util.math.formal.Variable)
public boolean functionIsEquals(Function function)
functionIsEquals
in class Function
function
- Function testedtrue
if there sure equals. false
dosen't mean not equals, but not sure about equalityFunction.functionIsEquals(jhelp.util.math.formal.Function)
public Function getCopy()
getCopy
in class Function
Function.getCopy()
public java.lang.String getName()
public boolean isRealValueNumber()
obtainRealValueNumber()
as as
meaningisRealValueNumber
in class Function
true
if the function can see as real numberFunction.isRealValueNumber()
public FunctionSimplifier obtainFunctionSimplifier()
obtainFunctionSimplifier
in class Function
Function.obtainFunctionSimplifier()
public double obtainRealValueNumber()
Double.NaN
is returnobtainRealValueNumber
in class Function
Double.NaN
if not defineFunction.obtainRealValueNumber()
public Function replace(Variable variable, Function function)
replace
in class Function
variable
- Variable to replacefunction
- Function for replaceFunction.replace(jhelp.util.math.formal.Variable, jhelp.util.math.formal.Function)
public java.lang.String toString()
toString
in class Function
Function.toString()
public VariableList variableList()
variableList
in class Function
Function.variableList()