JavaMathParser can evaluate mathematic expression with this operators: "+", "-", "*", "/", "^". Priorities of the operations can be configured by "(" and ")".
To evaluate your expression, call "public static double evaluate(@NotNull String expression)" from MathParser class.
Example of evaluate method usage you can find in Main.java.