Just curious as to why the "square root" feature was not added. Seems to be a fairly easy one to do. Would like to request that this be implemented. You'll have to grab a symbol of some kind for it's use, most computers actually have a square root symbol with a special code. ALT+251 gives you √. Anyways, my email is philbusiness52@gmail.com if you need to contact me. I'm a programmer as well by the way.
Anonymous
Hello,
The main reason is that I think the hard part of evaluating an infix expression is to have it split into elementary functions, not to have these functions implemented. DoubleEvaluator is not intended to be a "ready to use, full featured" evaluator. It is mainly an example of what can be done with AbstractEvaluator. Examples of how to extend existing evaluators are provided in the tutorial: http://javaluator.fathzer.com/en/doc/tutorial.php?chapter=extending.
You'll see the example is based on adding the square root function to DoubleEvaluator.
Another reason is some may think ALT+251 is a good solution to allow users to use square root in expressions, some (like the oracle team who wrote Java), may think it's better to have a function, with a name composed of pure old simple ASCII letters.
With Javaluator, you can implement what you want :-)
Best regards,
Jean-Marc Astesana