org.matheclipse.core.generic
Class UnaryNumerical
- java.lang.Object
-
- org.matheclipse.core.generic.UnaryNumerical
-
- All Implemented Interfaces:
- Function<IExpr,IExpr>, UnivariateFunction, DifferentiableUnivariateFunction
public class UnaryNumerical extends java.lang.Object implements Function<IExpr,IExpr>, DifferentiableUnivariateFunction
Unary numerical function for functions like Plot- See Also:
org.matheclipse.core.reflection.system.Plot
-
-
Constructor Summary
Constructors Constructor and Description UnaryNumerical(IExpr fn, ISymbol v, EvalEngine engine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description IExprapply(IExpr firstArg)Returns the result of applying this function toinput.UnivariateFunctionderivative()First derivative of unary functionComplexNumvalue(ComplexNum z)doublevalue(double x)Compute the value of the function.INumvalue(INum z)
-
-
-
Constructor Detail
-
UnaryNumerical
public UnaryNumerical(IExpr fn, ISymbol v, EvalEngine engine)
-
-
Method Detail
-
apply
public IExpr apply(IExpr firstArg)
Description copied from interface:FunctionReturns the result of applying this function toinput. This method is generally expected, but not absolutely required, to have the following properties:- Its execution does not cause any observable side effects.
- The computation is consistent with equals; that is,
Objects.equal(a, b)implies thatObjects.equal(function.apply(a), function.apply(b)).
-
value
public double value(double x)
Description copied from interface:UnivariateFunctionCompute the value of the function.- Specified by:
valuein interfaceUnivariateFunction- Parameters:
x- Point at which the function value should be computed.- Returns:
- the value of the function.
-
derivative
public UnivariateFunction derivative()
First derivative of unary function- Specified by:
derivativein interfaceDifferentiableUnivariateFunction- Returns:
- the derivative function
-
value
public ComplexNum value(ComplexNum z)
-
-
DMelt 3.0 © DataMelt by jWork.ORG