ObjectHunter
Hunting and gathering in the JEE landscape

I am Frank, a freelance Java developer specialized in backend development from south western germany.

A brandnew exp4j ALPHA has been released

posted by fas on 2014-09-27 . Tagged as programming, math, exp4j, java

In order to accommodate new features and make expression evaluation more efficient, exp4j has been rewritten. You can check it out here.

The API has also also changed quite a bit and the old interfaces have been replaced by more modern sleeker Classes and Methods.

The following small example shows how to evaluate an expression using the new API:

Expression e = new ExpressionBuilder("3 * sin(y) - 2 / (x - 2)")
        .variables("x", "y")
        .build()
        .setVariable("x", 2.3)
        .setVariable("y", 3.14);
double result = e.evaluate();

Tags: programming, math, exp4j, java