Math Parser for Java

English JME version not available yet.

Sorry for the inconvenience.

Last version 0.4.2 (uploaded on 28/Feb/2018)Version history

Download library JME (jme_4_2.jar) - 0.6MB

Download javadoc ( - 2.12MB

JME (Java Math Expression) is a freeware math parser for Java. Expressions are introduced by Java strings. Main features:

Online User Documentation (Spanish)
Developer manual. Version (Spanish-PDF)
            // Ejemplo de uso de JME
            import jme.Expresion;
            import jme.abstractas.Terminal;
            import jme.excepciones.ExpresionException;
            public class TestJME
                public static void main( String[] args )
                        // Una línea
                        System.out.println( "salida1: " + new Expresion( "x^2+x-3" ).setVariable( "x", 2 ).evaluar() );
                        // varias líneas
                        Expresion exp = new Expresion( "condsuc(primo(n),n,n,1,k)" );  // nºs primos hasta 100
                        exp.setConstante( "k", 100 );			
                        Terminal resultado = exp.evaluar();  // se almacena en esta variable el resultado final
                        System.out.println( "salida2: " + resultado );
                    catch ( ExpresionException e )
                        System.out.println( e.getMessage() );
            	//salida1: 3
				//salida2: [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97]

Vistas del modo REPL:

Evaluación sin entrar en modo REPL:

Application for drawing graphs and fractals JGE

JGE 0.1.1

This application allows to draw real functions, fractals, complex plane functions and vector fields in the plane, using JME as parser and evaluation library.

Author: Miguel Alejandro Moreno Barrientos
  IT Engineer (Córdoba University, Spain)

Comments, questions, bugs, etc.: pro*yecto*jme*@g*ma**il.*co*m