Singular Systems

Jep - Java Math Expression Parser

 

 


Support

 

Function Plotter




Example Applets

These examples are limited to 50 parses. Simply reload the page to reset the applets. This limitation is not present in the full version of the product.

Function Plotter

Type a mathematical expression into the top line. The graph of the function of x will be plotted below. Note that the scaling is 1:1.

The plotting of the curve does not require the equation to be parsed for each point. Instead, the parser "remembers" the structure of the expression and reevaluates for different values of x. This causes a significant speed increase compared to parsing the expression for each point.

Try using constants (pi and e) and common functions (sin(x), cos(x), tan(x), asin(x)...) in your expressions to test the built-in variables and functions.

Some sample expressions you can try:

  • 80 e^(-((x/40)^2))
  • 20 ln(x/10)
  • 10 tan(x/30)
  • x^3 / 1e4
  • 50 sin(x/20)
  • 50 sin(x/10)*(sin(x/10) > 0)
Source Code

FunctionPlotter.java
GraphCanvas.java

Expression Evaluator

This applet allows you to evaluate expressions containing the variable "x". Enter an expression and change the value of x. The result will be automatically updated.

Try entering complex numbers by using the built-in constant "i" as the imaginary unit (square root of -1).

Source Code
Evaluator.java