JCM Project

Basic JCM Applets

JCM classes can be assembled into applets without a lot of programming. For the most part, the components simply need to be added to the applet. After that, they take care of themselves. Here is a set of eight basic JCM applets, with well-commented source code, that show how to do this:

ArithmeticApplet GraphApplet1 GraphApplet2 GraphApplet3
SliderGraph TangentsApplet SecantTangentApplet SeriesGrapherApplet

The source code for the applets can be found on the above pages, along with the applets. In case you want to download the source code files, here is a link that you can use to browse the source code directly:

Basic JCM Applets source code

You should also take a look at the configurable JCM applets, which are much more versitile than the basic applets. The basic applets were written largely as examples of programming using JCM components.

Expressions in JCM

All the applets work with "expressions" such as "x+3" or "sqrt(k*t)". Expressions can use the operators +, -, *, /, ^, and ** (where both ^ and ** indicate exponentiation), and they can use the mathematical constants pi and e. They can use various mathematical functions: sin, cos, tan, sec, cot, csc, arcsin, arccos, arctan, exp, ln, log2, log10, abs, sqrt, trunc, round, floor, ceiling, and cubert. (Here, "abs" is the absolute value function and "cubert" is the cube root function.)