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 String
respectTo
The String of the variable that theTransformation
is with respect to -
Constructor Summary
Constructors Constructor Description Transformation(GeneralFunction operand, String respectTo)
Constructs a newTransformation
-
Method Summary
Modifier and Type Method Description abstract GeneralFunction
execute()
Returns the transformation of theUnitaryFunction.operand
String
getRespectTo()
Returns the variable that this transform works with respect toGeneralFunction
simplify()
Returns thisGeneralFunction
, simplifiedMethods inherited from class UnitaryFunction
clone, compareSelf, equalsFunction, getInstance, hashCode, iterator, newInstanceOf, simplifyFOC, simplifyInternal, simplifyInverse, substituteAll, toOutputFunction, toString
Methods inherited from class GeneralFunction
compareTo, derivativeAt, equals, equalsSimplified, getNthDerivative, getSimplifiedDerivative, substituteVariables
-
Field Details
-
respectTo
public final String respectToThe String of the variable that theTransformation
is with respect to
-
-
Constructor Details
-
Transformation
Constructs a newTransformation
- Parameters:
operand
- the operand of theTransformation
respectTo
- the variable that theTransformation
operates with respect to
-
-
Method Details
-
simplify
Description copied from interface:Simplifiable
Returns thisGeneralFunction
, simplified- Specified by:
simplify
in interfaceSimplifiable
- Overrides:
simplify
in 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
-