Function.DefaultSimplifier
Modifier and Type | Field and Description |
---|---|
static Constant |
E
e
|
static Constant |
MINUS_ONE
-1
|
static Constant |
ONE
1
|
static Constant |
PI
π
|
private double |
real
Real value
|
static Constant |
TWO
2
|
static Constant |
UNDEFINED
The constant is undefined due illegal operation like division by zero, take the logarithm of negative value, ...
|
static Constant |
ZERO
0
|
COMPARATOR, references
Constructor and Description |
---|
Constant(double real)
Constructs the constant
|
Modifier and Type | Method and Description |
---|---|
Constant |
absoluteValue()
Absolute value of constant
|
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
|
boolean |
isMinusOne()
Indicates if the constant is -1
|
boolean |
isNegative()
Indicates if constants is < 0
|
boolean |
isNul()
Indicates if the constant is 0
|
boolean |
isOne()
Indicates if the constant is 1
|
boolean |
isPositive()
Indicates if constants is > 0
|
boolean |
isRealValueNumber()
Indicates if function can see as real number, that is to say that the value of
obtainRealValueNumber() as as
meaning |
boolean |
isUndefined()
Indicates if the constant is undefined
|
static Constant |
MOINS_UN_PUISSANCE(int n)
Give the -1n constant
|
Constant |
multipleDePi()
Return the constant divide by Pi
|
double |
obtainRealValueNumber()
Real value of function, if the function can be represents by a real number.
|
Constant |
puissanceDeE()
Return the Neperian logarithm apply to the constant
|
java.lang.String |
realString()
Real string representation
|
Function |
replace(Variable variable,
Function function)
Replace variable list by function
|
Constant |
sign()
Constant sign
|
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, obtainFunctionSimplifier, parse, replace, replace, replace, setConstantsReferences, simplify, simplifyMaximum, simplifyMaximum, totalDerive
public static final Constant E
public static final Constant MINUS_ONE
public static final Constant ONE
public static final Constant PI
public static final Constant TWO
public static final Constant UNDEFINED
public static final Constant ZERO
private final double real
public Constant(double real)
real
- Valuepublic static Constant MOINS_UN_PUISSANCE(int n)
n
- Power to apply to -1protected int compareToInternal(Function function)
compareToInternal
in class Function
function
- Function sure be the instance of the functionFunction.compareToInternal(jhelp.util.math.formal.Function)
public Constant absoluteValue()
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 boolean isMinusOne()
true
the constant is -1public boolean isNegative()
true
if constants is < 0public boolean isNul()
true
if the constant is 0public boolean isOne()
true
if the constant is 1public boolean isPositive()
true
if constants is > 0public boolean isRealValueNumber()
obtainRealValueNumber()
as as
meaningisRealValueNumber
in class Function
true
Function.isRealValueNumber()
public boolean isUndefined()
true
if the constant is undefinedpublic Constant multipleDePi()
public double obtainRealValueNumber()
Double.NaN
is returnobtainRealValueNumber
in class Function
Double.NaN
if not defineFunction.obtainRealValueNumber()
public Constant puissanceDeE()
public java.lang.String realString()
realString
in class Function
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 Constant sign()
public java.lang.String toString()
public VariableList variableList()
variableList
in class Function
Function.variableList()