This page demonstrates some applets related to Java applications discussed in Appendix E
of Computer Graphics for Java Programmers, 2nd Edition.
Section E.1. Platonic solids: dodecahedron
Section E.1. Platonic solids: icosahedron
Section E.2. Sphere representations
Section E.4. Beams in a spiral
Section E.5. Functions of two variables the variables x and y
numerical constants such as -0.1
functions cos, sin and pow (short for to the power)
the four binary operators + - * /
parentheses, as usual
In particular, do not use unary minus signs, other than for constants. For example, instead of
  -x * y / 5
A sphere approximated by triangles
There will be n beams. Each next beam is turned alpha degrees compared with the previous one.
For each beam, height = width = 1, length (not less than 1) can be set below.
In the expression for z = f(x, y), you may use only
you should write either
  0 - x * y / 5   or simply   -0.2 * x * y 
as you can try by using copy and paste.