public abstract class BinaryOperator extends Function
Function.DefaultSimplifier
Modifier and Type | Field and Description |
---|---|
private static java.lang.String[] |
OPERATORS
Symbols list of operator concern.
|
private java.lang.String |
operatorStringRepresentation
Operator string representation
|
protected Function |
parameter1
First parameter
|
protected Function |
parameter2
Second parameter
|
COMPARATOR, references
Constructor and Description |
---|
BinaryOperator(java.lang.String operatorStringRepresentation,
Function parameter1,
Function parameter2)
Constructs a binary operator
|
Modifier and Type | Method and Description |
---|---|
protected int |
compareToInternal(Function function)
Internal comparison
Parent documentation: Internal comparison |
Function |
getParameter1()
First parameter in binary operation
|
Function |
getParameter2()
Second parameter in binary operation
|
boolean |
isRealValueNumber()
Indicates if function can see as real number, that is to say that the value of
obtainRealValueNumber() as as
meaning |
double |
obtainRealValueNumber()
Real value of function, if the function can be represents by a real number.
|
protected static BinaryOperator |
parseBinaryOperator(java.lang.String string)
Try parse a string to a binary operator.
|
java.lang.String |
toString()
String representation of the function
|
VariableList |
variableList()
Variable list contains in this function
|
allEquals, compareTo, createAddition, createMultiplication, derive, derive, derive, derive, equals, functionIsEquals, functionIsEqualsMoreSimple, getArgument, getCopy, obtainFunctionSimplifier, parse, realString, replace, replace, replace, replace, setConstantsReferences, simplify, simplifyMaximum, simplifyMaximum, totalDerive
private static final java.lang.String[] OPERATORS
private final java.lang.String operatorStringRepresentation
protected final Function parameter1
protected final Function parameter2
protected static BinaryOperator parseBinaryOperator(java.lang.String string)
null
is return if the string is not a binary operatorstring
- String to parsenull
protected 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 getParameter1()
public Function getParameter2()
public boolean isRealValueNumber()
obtainRealValueNumber()
as as
meaningisRealValueNumber
in class Function
false
Function.isRealValueNumber()
public double obtainRealValueNumber()
Double.NaN
is returnobtainRealValueNumber
in class Function
Double.NaN
Function.obtainRealValueNumber()
public java.lang.String toString()
toString
in class Function
Function.toString()
public VariableList variableList()
variableList
in class Function
Function.variableList()