class Addition.AdditionSimplifier extends java.lang.Object implements FunctionSimplifier
Constructor and Description |
---|
Addition.AdditionSimplifier() |
Modifier and Type | Method and Description |
---|---|
private Function |
compress()
Try to "compress" the addition.
|
Function |
simplify()
Simplify the addition
Parent documentation: Call when simplify the function |
private Function |
simplify(Addition addition,
Function function)
(f1 + f2) + f3 => f2 + (f1 + f3)
|
private Function |
simplify(Constant constant1,
Constant constant2)
C1 + C2 => C3
|
private Function |
simplify(Constant constant,
Function function)
Simplify C + f
|
private Function |
simplify(Function function,
Addition addition)
f1 + (f2 + f3) => f3 + ( f2 + f1 )
|
private Function |
simplify(Function function,
Constant constant)
f + C => C + f
|
private Function |
simplify(Function function1,
Function function2)
Tries to simplify the addition of 2 functions
|
private Function |
simplify(Function function,
MinusUnary minusUnary)
f1 + (- f2) => f1 - f2
|
private Function |
simplify(Function function,
Multiplication multiplication)
Try to simplify f1 + (f2 * f3)
|
private Function |
simplify(Function function,
Subtraction subtraction)
f1 + (f2 - f3) => (f2 + f1) - f3
|
private Function |
simplify(Logarithm logarithm1,
Logarithm logarithm2)
ln(f1) + ln(f2) => ln(f1 * f2)
|
private Function |
simplify(MinusUnary minusUnary,
Function function)
(- f1) + f2 => f2 - f1
|
private Function |
simplify(MinusUnary minusUnary1,
MinusUnary minusUnary2)
(- f1) + (- f2) => - (f1 + f2)
|
private Function |
simplify(Multiplication multiplication,
Function function)
Try to simplify (f1 * f2) + f3
|
private Function |
simplify(Multiplication multiplication1,
Multiplication multiplication2)
Try to simplify (f1 * f2) + (f3 * f4)
|
private Function |
simplify(Subtraction subtraction,
Function function)
(f1 - f2) + f3 => (f3 - f2) + f1
|
private Function |
simplify(Subtraction subtraction1,
Subtraction subtraction2)
(f1 - f2) + (f3 - f4) => (f1 + f3) - (f2 + f4)
|
private Function |
simplifyAdditionOfMultiplcations(Cosinus cosinus1,
Cosinus cosinus2,
Sinus sinus1,
Sinus sinus2)
Tries to simplify (cos(f1) * cos(f2)) + (sin(f3) * sin(f4))
|
private Function |
simplifyAdditionOfMultiplcations(Cosinus cosinus1,
Sinus sinus1,
Cosinus cosinus2,
Sinus sinus2)
Tries to simplify (cos(f1) * sin(f2)) + (c(f3) * sin(f4))
|
private Function |
simplifyAdditionOfMultiplcations(Cosinus cosinus1,
Sinus sinus1,
Sinus sinus2,
Cosinus cosinus2)
Tries to simplify (cos(f1) * sin(f2)) + (sin(f3) * cos(f4))
|
private Function |
simplifyAdditionOfMultiplcations(Function function1,
Function function2,
Function function3,
Function function4)
Tries to simplify (f1 * f2) + (f3 * f4)
|
private Function |
simplifyAdditionOfMultiplcations(Sinus sinus1,
Cosinus cosinus1,
Cosinus cosinus2,
Sinus sinus2)
Tries to simplify (sin(f1) * cos(f2)) + (cos(f3) * sin(f4))
|
private Function |
simplifyAdditionOfMultiplcations(Sinus sinus1,
Cosinus cosinus1,
Sinus sinus2,
Cosinus cosinus2)
Tries to simplify (sin(f1) * cos(f2)) + (sin(f3) * cos(f4))
|
private Function |
simplifyAdditionOfMultiplcations(Sinus sinus1,
Sinus sinus2,
Cosinus cosinus1,
Cosinus cosinus2)
Tries to simplify (sin(f1) * sin(f2)) + (cos(f3) * cos(f4))
|
private Function |
simplifyAdditonOfMultiplicationAndFunction(Function parameter1,
Function parameter2,
Function function)
Tries to simplify (f1 * f2) + f3
|
private Function compress()
null
if compression not happenprivate Function simplify(Addition addition, Function function)
addition
- (f1 + f2)function
- f3private Function simplify(Constant constant1, Constant constant2)
constant1
- C1constant2
- C2private Function simplify(Constant constant, Function function)
constant
- Cfunction
- fprivate Function simplify(Function function, Addition addition)
function
- f1addition
- f2 + f3private Function simplify(Function function, Constant constant)
function
- fconstant
- Cprivate Function simplify(Function function1, Function function2)
function1
- Function 1function2
- Function 2private Function simplify(Function function, MinusUnary minusUnary)
function
- f1minusUnary
- -f2private Function simplify(Function function, Multiplication multiplication)
function
- f1multiplication
- f2 * f3private Function simplify(Function function, Subtraction subtraction)
function
- f1subtraction
- f2 - f3private Function simplify(Logarithm logarithm1, Logarithm logarithm2)
logarithm1
- ln(f1)logarithm2
- ln(f12)private Function simplify(MinusUnary minusUnary, Function function)
minusUnary
- -f1function
- f2private Function simplify(MinusUnary minusUnary1, MinusUnary minusUnary2)
minusUnary1
- -f1minusUnary2
- -f2private Function simplify(Multiplication multiplication, Function function)
multiplication
- f1 * f2function
- f3private Function simplify(Multiplication multiplication1, Multiplication multiplication2)
multiplication1
- f1 * f2multiplication2
- f3 * f4private Function simplify(Subtraction subtraction, Function function)
subtraction
- f1 - f2function
- f3private Function simplify(Subtraction subtraction1, Subtraction subtraction2)
subtraction1
- f1 - f2subtraction2
- f3 - f4private Function simplifyAdditionOfMultiplcations(Cosinus cosinus1, Cosinus cosinus2, Sinus sinus1, Sinus sinus2)
cosinus1
- cos(f1)cosinus2
- cos(f2)sinus1
- sin(f3)sinus2
- sin(f4)private Function simplifyAdditionOfMultiplcations(Cosinus cosinus1, Sinus sinus1, Cosinus cosinus2, Sinus sinus2)
cosinus1
- cos(f1)sinus1
- sin(f2)cosinus2
- cos(f3)sinus2
- sin(f4)private Function simplifyAdditionOfMultiplcations(Cosinus cosinus1, Sinus sinus1, Sinus sinus2, Cosinus cosinus2)
cosinus1
- cos(f1)sinus1
- sin(f2)sinus2
- sin(f3)cosinus2
- cos(f4)private Function simplifyAdditionOfMultiplcations(Function function1, Function function2, Function function3, Function function4)
function1
- f1function2
- f2function3
- f3function4
- f4private Function simplifyAdditionOfMultiplcations(Sinus sinus1, Cosinus cosinus1, Cosinus cosinus2, Sinus sinus2)
sinus1
- sin(f1)cosinus1
- cos(f2)cosinus2
- cos(f3)sinus2
- sin(f4)private Function simplifyAdditionOfMultiplcations(Sinus sinus1, Cosinus cosinus1, Sinus sinus2, Cosinus cosinus2)
sinus1
- sin(f1)cosinus1
- cos(f2)sinus2
- sin(f3)cosinus2
- cos(f4)private Function simplifyAdditionOfMultiplcations(Sinus sinus1, Sinus sinus2, Cosinus cosinus1, Cosinus cosinus2)
sinus1
- sin(f1)sinus2
- sin(f2)cosinus1
- cos(f3)cosinus2
- cos(f4)private Function simplifyAdditonOfMultiplicationAndFunction(Function parameter1, Function parameter2, Function function)
parameter1
- f1parameter2
- f2function
- f3public Function simplify()
simplify
in interface FunctionSimplifier
FunctionSimplifier.simplify()