Expression4j Expression4J

About

About
Documentation
Sample
Download

Expression4J is a java framework used to manage mathematic expression stored in String object like "f(x,b)=2*x-cos(b)" or "g(x,y)=f(y,x)*-2".

It is strongly customisable and can accept gramar define by user. So you can customize the syntax analyzer with your own operator (like | or #) or your own mathematical element (like set)

At this time, expression4j can manage:
  • basic opératon (+,-,*,/,^)
  • real value (3.4, 3e-3 ...)
  • complex value (3.4+2e-3i)
  • basic function like cos, sin as java Math class can do.
  • complex function like f(x)=2*x+5  and g(x)=3*f(x+2)-x
  • user define function writen in java
  • user define gramar like g(x)=x#x (# is a custom operator) (this is managed by ExpressionModel)
  • catalog (set of functions)
  • XML configuration file (for storing/loading user functions and user define gramar)
Expression4j is not a mature framework for the moment and I think it has a lotf of bug (:)).
SourceForge.net Logo Support This Project