CloneableInstantiable
Methods
public __construct(array $functions, array $operators)
 

Calculator constructor.

    public calculate(array $tokens, array $variables)
     

    Calculate array of tokens in reverse polish notation

    • return mixed
    • throws IncorrectExpressionException
    • throws UnknownVariableException
    Properties
    private $functions
     
    • var CustomFunction[]
    private $operators
     
    • var Operator[]
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only