FWIW, the cleanest mathematical / programmable trefoil that I know of is the following (I am too lazy to do it in J, so Gnuplot):
set size ratio 1.08 set parametric set polar plot [0:2*pi] t,1+cos(3*t)+sin(3*t)**2 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm