Package functions.unitary.specialcases
Class Exp
- All Implemented Interfaces:
Differentiable,Evaluable,Invertible,Outputable,Simplifiable,Comparable<GeneralFunction>,Iterable<GeneralFunction>
public class Exp extends SpecialCaseBinaryFunction
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Exp(GeneralFunction operand)Constructs a newExp -
Method Summary
Modifier and Type Method Description doubleevaluate(Map<String,Double> variableValues)Evaluates aGeneralFunctionat a point denoted by aMapBinaryFunctiongetClassForm()Returns the BinaryFunction that this function is a special case of.GeneralFunctiongetDerivative(String varID)Returns the derivative of aGeneralFunctionwith respect to a variable.UnitaryFunctiongetInstance(GeneralFunction operand)Returns a new instance of thisUnitaryFunctionClass<?>getInverse()Returns theClasscorresponding to the inverse of this functionMethods inherited from class UnitaryFunction
clone, compareSelf, equalsFunction, hashCode, iterator, newInstanceOf, simplify, simplifyFOC, simplifyInternal, simplifyInverse, substituteAll, toOutputFunction, toStringMethods inherited from class GeneralFunction
compareTo, derivativeAt, equals, equalsSimplified, getNthDerivative, getSimplifiedDerivative, substituteVariables
-
Constructor Details
-
Method Details
-
evaluate
public double evaluate(Map<String,Double> variableValues)Description copied from interface:EvaluableEvaluates aGeneralFunctionat a point denoted by aMap- Parameters:
variableValues- the values of the variables in theGeneralFunctionat the point- Returns:
- the value of the
GeneralFunctionat the point
-
getDerivative
Description copied from interface:DifferentiableReturns the derivative of aGeneralFunctionwith respect to a variable. Should not be used in general;GeneralFunction.getSimplifiedDerivative(java.lang.String)is strongly preferred.- Parameters:
varID- the ID of the variable that is differentiated against- Returns:
- the derivative of the function with respect to
varID
-
getInstance
Description copied from class:UnitaryFunctionReturns a new instance of thisUnitaryFunction- Specified by:
getInstancein classUnitaryFunction- Parameters:
operand- theGeneralFunctionto be operated on- Returns:
- a new instance of this
UnitaryFunction
-
getClassForm
Description copied from class:SpecialCaseBinaryFunctionReturns the BinaryFunction that this function is a special case of. Ex:lnbecomeslogb_e- Specified by:
getClassFormin classSpecialCaseBinaryFunction- Returns:
- a new BinaryFunction
-
getInverse
public Class<?> getInverse()Description copied from interface:InvertibleReturns theClasscorresponding to the inverse of this function- Returns:
- the inverse
Class
-