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`, `Serializable`

Enclosing class:
  `JepTest`

public static class JepTest.PiFun extends PostfixMathCommand implements RealNullaryFunction
Real nullay function

See Also:
  - Serialized Form

- ## Field Summary

  ### Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand

  `curNumberOfParameters, description, name, NaN, numberOfParameters`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PiFun()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `double`
  `evaluate()`
  `void`
  `run(Stack<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, asType, checkNumberOfParameters, getDescription, getDescription, getDescriptionWithType, getName, getNumberOfParameters, setCurNumberOfParameters, setDescription, setName, toString, toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### PiFun

    public PiFun()

- ## Method Details

  - ### evaluate

    public double evaluate()
    Specified by:
      `evaluate` in interface `RealNullaryFunction`

  - ### run

    public void run(Stack<Object> s)
    Description copied from class: `PostfixMathCommand`
    Throws an exception because this method should never be called under normal circumstances. Each function should use its 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:
      `run` in interface `PostfixMathCommandI`
    Overrides:
      `run` in class `PostfixMathCommand`
    Parameters:
      `s` - arguments for function