User defined constants could possibly be implemented in some sort of expression builder class or directly into the StrEvaluate class. This would allow users to attach a double value to a string constant:
StrEvaluate evaluator = new StrEvaluate();
evaluator.addConstant("pi", 3.14);
Support for mathematical constants, both built-in and user defined. Built-in constants should include:
User defined constants could possibly be implemented in some sort of expression builder class or directly into the StrEvaluate class. This would allow users to attach a double value to a string constant: