The JMathLib interpreter can be called from other programs which can use it to perform it mathematical calculations
The interpreter classes main function is the evaluateExpression function. This takes a string containing the expression and returns a string containing the answer.
Currently JMathLib can only be called from other Java programs. (though see accessing JMathLib from Perl.)