Package functions.unitary.trig.normal
Class Sech
- All Implemented Interfaces:
Differentiable,Evaluable,Integrable,Invertible,Outputable,Simplifiable,Comparable<GeneralFunction>,Iterable<GeneralFunction>
public class Sech extends TrigFunction
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Sech(GeneralFunction operand)Constructs a newSech -
Method Summary
Modifier and Type Method Description doubleevaluate(Map<String,Double> variableValues)Returns the hyperbolic secant of the storedUnitaryFunction.operandevaluatedGeneralFunctiongetDerivative(String varID)Returns the derivative of aGeneralFunctionwith respect to a variable.GeneralFunctiongetElementaryIntegral()Returns the elementary integral of the function.UnitaryFunctiongetInstance(GeneralFunction operand)Returns a new instance of thisUnitaryFunctionClass<?>getInverse()Returns theClasscorresponding to the inverse of this functionGeneralFunctionsimplifyInverse()IfUnitaryFunction.operandis an instance of the inverse of this function, returnsoperand.operandMethods inherited from class UnitaryFunction
clone, compareSelf, equalsFunction, hashCode, iterator, newInstanceOf, simplify, simplifyFOC, simplifyInternal, substituteAll, toStringMethods inherited from class GeneralFunction
compareTo, derivativeAt, equals, equalsSimplified, getNthDerivative, getSimplifiedDerivative, substituteVariables
-
Constructor Details
-
Method Details
-
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
-
evaluate
public double evaluate(Map<String,Double> variableValues)Returns the hyperbolic secant of the storedUnitaryFunction.operandevaluated- Parameters:
variableValues- The values of the variables of theGeneralFunctionat the point- Returns:
- the sech of
UnitaryFunction.operandevaluated
-
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
-
getElementaryIntegral
Description copied from interface:IntegrableReturns the elementary integral of the function. Ex:sin(2x)becomes-cos{2x}, NOT-cos(2x)/2.- Returns:
- the elementary integral of the function as specified above
-
getInverse
public Class<?> getInverse()Description copied from interface:InvertibleReturns theClasscorresponding to the inverse of this function- Returns:
- the inverse
Class
-
simplifyInverse
Description copied from class:UnitaryFunctionIfUnitaryFunction.operandis an instance of the inverse of this function, returnsoperand.operand- Overrides:
simplifyInversein classUnitaryFunction- Returns:
operand.operandifUnitaryFunction.operandis an instance of the inverse, andthisotherwise
-