Use exp4j to resolve equations.