public abstract class DifferentiableUnaryOperation extends DifferentiableOperation
Modifier and Type | Field and Description |
---|---|
protected DifferentiableOperation |
ARGUMENT
argument on which the operation is performed
|
ADDITION_PRECEDENCE, POWER_PRECEDENCE, PRODUCT_PRECEDENCE, QUOTIENT_PRECEDENCE, SUBTRACTION_PRECEDENCE, SYMBOL_PRECEDENCE
Modifier | Constructor and Description |
---|---|
protected |
DifferentiableUnaryOperation(DifferentiableOperation argument)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected DifferentiableOperation |
getArgument()
get the argument to negate
|
DifferentiableOperation |
getDerivative(DifferentiableVariable variable)
Get the derivative with respect to the specified variable applying the chain rule for the argument
|
abstract DifferentiableOperation |
getDirectDerivative(DifferentiableVariable variable)
Get the derivative for just this operation without regard for the chain rule
|
abstract java.lang.String |
getLabel()
Get the label for the operation
|
protected int |
getPrecedence()
get the operation precedence
|
protected boolean |
isEquivalentTo(DifferentiableOperation operation)
Test whether this operation is equivalent to the specified operation when the two operations are different instances.
|
java.lang.String |
toString()
get the string representation
|
abs, acos, asin, atan, copySubstituting, copySubstitutingWithCache, copyWithSubstitutions, cos, cosh, evaluate, evaluate, evaluate, evaluateWithCache, exp, getConstant, getVariable, isEqualTo, log, minus, minus, minus, minus, multiply, negate, over, over, over, over, plus, plus, plus, plus, plus, pow, pow, reciprocal, sin, sinh, sqrt, sum, tan, tanh, times, times, times, times, times, toString, toString
protected final DifferentiableOperation ARGUMENT
protected DifferentiableUnaryOperation(DifferentiableOperation argument)
protected DifferentiableOperation getArgument()
public abstract java.lang.String getLabel()
public abstract DifferentiableOperation getDirectDerivative(DifferentiableVariable variable)
public final DifferentiableOperation getDerivative(DifferentiableVariable variable)
getDerivative
in class DifferentiableOperation
protected boolean isEquivalentTo(DifferentiableOperation operation)
isEquivalentTo
in class DifferentiableOperation
public java.lang.String toString()
toString
in class java.lang.Object
protected int getPrecedence()
getPrecedence
in class DifferentiableOperation