Package functions.unitary.transforms
Class Transformation
Object
GeneralFunction
UnitaryFunction
Transformation
- All Implemented Interfaces:
Differentiable,Evaluable,Outputable,Simplifiable,Comparable<GeneralFunction>,Iterable<GeneralFunction>
- Direct Known Subclasses:
Differential,Integral,PartialDerivative
public abstract class Transformation extends UnitaryFunction
The abstract
Transformation class represents any transformation that turns one function into another function. Ex: ∫ or d/dx-
Field Summary
Fields Modifier and Type Field Description StringrespectToThe String of the variable that theTransformationis with respect to -
Constructor Summary
Constructors Constructor Description Transformation(GeneralFunction operand, String respectTo)Constructs a newTransformation -
Method Summary
Modifier and Type Method Description abstract GeneralFunctionexecute()Returns the transformation of theUnitaryFunction.operandStringgetRespectTo()Returns the variable that this transform works with respect toGeneralFunctionsimplify()Returns thisGeneralFunction, simplifiedMethods inherited from class UnitaryFunction
clone, compareSelf, equalsFunction, getInstance, hashCode, iterator, newInstanceOf, simplifyFOC, simplifyInternal, simplifyInverse, substituteAll, toOutputFunction, toStringMethods inherited from class GeneralFunction
compareTo, derivativeAt, equals, equalsSimplified, getNthDerivative, getSimplifiedDerivative, substituteVariables
-
Field Details
-
respectTo
public final String respectToThe String of the variable that theTransformationis with respect to
-
-
Constructor Details
-
Transformation
Constructs a newTransformation- Parameters:
operand- the operand of theTransformationrespectTo- the variable that theTransformationoperates with respect to
-
-
Method Details
-
simplify
Description copied from interface:SimplifiableReturns thisGeneralFunction, simplified- Specified by:
simplifyin interfaceSimplifiable- Overrides:
simplifyin classUnitaryFunction- Returns:
- the simplified function
-
execute
Returns the transformation of theUnitaryFunction.operand- Returns:
- the transformation of the
UnitaryFunction.operand - Throws:
TransformFailedException- if the transform did not succeed
-
getRespectTo
public String getRespectTo()Returns the variable that this transform works with respect to- Returns:
- the variable that this transform works with respect to
-