This reminds me of the fun to be had plotting sin +&*: cos,
which mathematically is a horizontal line, but numerically...
Try it:

   load 'plot'
   plot (; sin +&*: cos) steps 0 2p1 400

Years ago, so long ago there was no plot script in J, I had
a student doing a final project in J where he was to create
something like plot; it was supposed to automatically scale
the vertical coordinate, add grid and mark suitable
points along the x and y axis. The student missed classes
missed every deadline to hand in homework and ultimately
came to me after Christmas hoping I would accept his
work (he needed the class in order to graduate in Dec).
I was so mad at his missed deadlines that I just told him
I had no time to deal with grading a semesters worth
of homework handed in weeks after the semseter was over, but
he could show me his final project. He plotted sin,
I asked him to plot  sin +&*: cos,
his program did what plot does. I looked at him and
asked what that was; he was dumbfounded, I physically
grabbed his shoulders and pushed him out of the room.
I passed him, but he had to wait a few days to find that
out, and his homework had some brilliant J gems too...

Cliff, the mean math teacher

Roger Hui wrote:
It is false that (sin +&*: cos) y not equal to 1 implies that sin y or cos y or both are wrong.


--
Clifford A. Reiter
Mathematics Department, Lafayette College
Easton, PA 18042 USA,   610-330-5277
http://www.lafayette.edu/~reiterc

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to