Package com.singularsys.jeptests.system
Class JepTest.PiFun
- java.lang.Object
-
- com.singularsys.jep.functions.PostfixMathCommand
-
- com.singularsys.jeptests.system.JepTest.PiFun
-
- All Implemented Interfaces:
PostfixMathCommandI,RealNullaryFunction,java.io.Serializable
- Enclosing class:
- JepTest
public static class JepTest.PiFun extends PostfixMathCommand implements RealNullaryFunction
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand
curNumberOfParameters, name, NaN, numberOfParameters
-
-
Constructor Summary
Constructors Constructor Description PiFun()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleevaluate()voidrun(java.util.Stack<java.lang.Object> s)Throws an exception because this method should never be called under normal circumstances.-
Methods inherited from class com.singularsys.jep.functions.PostfixMathCommand
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, checkNumberOfParameters, getName, getNumberOfParameters, setCurNumberOfParameters, setName, toString, toString
-
-
-
-
Method Detail
-
evaluate
public double evaluate()
- Specified by:
evaluatein interfaceRealNullaryFunction
-
run
public void run(java.util.Stack<java.lang.Object> s) throws EvaluationExceptionDescription copied from class:PostfixMathCommandThrows an exception because this method should never be called under normal circumstances. Each function should use it's own run() method for evaluating the function. This includes popping off the parameters from the stack, and pushing the result back on the stack.- Specified by:
runin interfacePostfixMathCommandI- Overrides:
runin classPostfixMathCommand- Parameters:
s- arguments for function- Throws:
EvaluationException- if function cannot be evaluated
-
-