[Jprogramming] Challenge 8 A Shamrock for St. Patrick

Henry Rich HenryHRich at nc.rr.com
Wed Mar 21 19:28:37 HKT 2012


Cute!  J version:

'radar' plot 0 2p1;'1 + (cos 3*y) + *: sin 3*y'

Henry Rich

On 3/21/2012 5:55 AM, Boyko Bantchev wrote:
> 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
>


More information about the Programming mailing list