JFormula 3.2 - Math expressions API
Formula is a library for evaluating various mathematical expressions. User can evaluate instantly a string setting variables, adding its own functions or operators.
Main features :
Decimal, string, boolean operators (or, and, not, xor... ) Unicode High precision mode Boolean expression support : (A<B)&&(B>C), (A or B) and not ( C equals D ) IF THEN ELSE expression Short expression format : 2x+3y Variable : A=(cos(PI + x )*2) + [y-x]^2 Multiple lines expression : A = 1 B = A + 1 ... Functions with decimal, boolean, string or list arguments Override or add your operators Extend or add a new library dynamically Override any functions from the current library by your one Lazy evaluation for boolean expressions Evaluation tree produced by a pluggable parsing system Evaluation optimization for symbol value changes Standard library with 24 mathematical functions Use delegates for resolving unknown functions or symbols Support for multithreaded computing Many samples (library extension, graphes) for API interesting parts JDK 1.1 compliant (tested on JDK1.1.8, JDK 1.4 and JDK1.5)