Package org.nfunk.jepexamples


package org.nfunk.jepexamples
A set of examples using JEP. The following examples are provided:
  • SimpleTest - The simplest example that demonstrates the use of JEP for evaluation of a single expression
  • Console - A simple command-line evaluator.
  • Evaluator - An applet that evaluates expressions entered.
  • FunctionPlotter - An applet that plots arbitrary functions entered by the user.
  • Fractal - A fractal drawing applet based on an arbitrary function.
  • JEPTester - Tests JEP evaluation by comparing expressions from consecutive lines of a text file.
  • ThreadTest - A brute force test for detecting mutlithreading issues
  • LargeExpressionTest - A simple class to test evaluation of large expression.
  • Classes
    Class
    Description
    This applet is an simple example for how JEP can be used to evaluate expressions.
     
    This class performs the drawing of the fractal.
    This applet is a demonstration of the possible applications of the JEP mathematical expression parser.
    This class plots a graph using the JEP API.
    This example tests how the evaluation time is influenced by the size of the expression and symbol table.
    A seven line program for testing whether the JEP library can be found by the compiler and at run-time.
    Upon successful compilation and running of the program, the program should print out one line: "1+2 = 3.0"
    This class tests the thread safety of the JEP package with a brute force approach.
    The ThreadTestThread waits for 5 seconds before calling the evaluate method of the ThreadTest instance.