Math Parser for Java

English JME version not available yet.

Sorry for the inconvenience.

Last version 0.3.6 (uploaded on 31/08/2017)Version history

Download library JME (jme_3_6.jar) - 468kB

Download javadoc ( - 1.77MB

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

User manual. Version 0.3.6 (Spanish)
            // 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
  IS Engineer (Córdoba University, Spain)

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