Class Sin
- java.lang.Object
-
- net.sourceforge.jeval.function.math.Sin
-
-
Constructor Summary
Constructors Constructor Description Sin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FunctionResultexecute(Evaluator evaluator, java.lang.String arguments)Executes the function for the specified argument.java.lang.StringgetName()Returns the name of the function - "sin".
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of the function - "sin".
-
execute
public FunctionResult execute(Evaluator evaluator, java.lang.String arguments) throws FunctionException
Executes the function for the specified argument. This method is called internally by Evaluator.- Specified by:
executein interfaceFunction- Parameters:
evaluator- An instance of Evaluator.arguments- A string argument that will be converted to a double value and evaluated.- Returns:
- The sine of the argument.
- Throws:
FunctionException- if the argument(s) are not valid for this function
-
-