MIDP Graphing Calculator
Warning: you are viewing ancient history. I am leaving these pages up as courtesy to anyone looking, but these projects are long since abandoned.
Screenshot

Here is a little graphing calculator I have written for JavaTM MIDP cell phones. This is a small hobby project I've whipped up over the course of a few days.

Download latest version, updated October 10, 2007

I have tested it on a Nokia 3110 Classic, and on Sun's emulator provided with the Wireless Toolkit. YMMV.

It actually implements a small programming language, parsing expressions into trees. One can define functions with an arbitrary number of parameters, and use the functions in java.lang.Math in addition to the normal operators.

Some statements to try out in the prompt:

  • Plot f – plots the function f
  • Plot f(x)=expression – defines a function on the fly and plots it
  • Plot sin,cos,tan,f(x)=x^2 – plots each of these functions
  • Let x = expression – Define a variable

Note that you can tweak what region is plotted by setting the varaibles Xmin, Xmax, Ymin, Ymax.

You can also do switch statements, as in:

switch (x) {
  1: 1
  default: 0
}