Skip navigation links

Package com.singularsys.jep.functions

Classes that implement the built-in functions and operators.

See: Description

Package com.singularsys.jep.functions Description

Classes that implement the built-in functions and operators.

There are several base classes and interfaces which can be used:

PostfixMathCommandI
The basic interface all functions should implement. Defines a void run(Stack aStack) method.
PostfixMathCommand
Base class for most functions
UnaryFunction
Base class for unary functions, just need to implement a Object eval(Object arg) method.
BinaryFunction
Base class for binary functions, just need to implement Object eval(Object l,Object r) method.
NaryBinaryFunction
Base class for n-ary functions backed by an associative operation like +,*. just need to implement Object eval(Object l,Object r) method.
CallbackEvaluationI
Interface for classes which need access to the parse-tree, for example lazy evaluation functions like && and || which do not need to evaluate all their arguments, or assignment operators which need access to a variable and not just its value.
The com.singularsys.jep.reals package also define some interfaces for functions which take double arguments and return double results, which can be quicker in special purpose evaluators.

Copyright © 2018 Singular Systems http://www.singularsys.com/jep