WCM Project

Basic WCM Applets

WCM 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 WCM 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, or you can browse it in the webcompmath CVS repository

You should also take a look at the configurable WCM 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 WCM

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.)