These are all from the same quation, but with different domains. They are
all variations of "roses"
shamrock=: 'radar' plot 0 2p1;'1 + (2 o. 3*y) + *: 1 o. 3*y'
daisy=: 'radar' plot 0 30 ;'1 + (2 o. 3*y) + *: 1 o. 3*y'
dogwood=: 'radar' plot 0 8 ;'1 + (2 o. 3*y) + *: 1 o. 3*y'
placemat=: 'radar' plot 0 155 ;'1 + (2 o. 3*y) + *: 1 o. 3*y'
moire=: 'radar' plot 0 220 ;'1 + (2 o. 3*y) + *: 1 o. 3*y'
Linda
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Henry Rich
Sent: Wednesday, March 21, 2012 7:29 AM
To: Programming forum
Subject: Re: [Jprogramming] Challenge 8 A Shamrock for St. Patrick
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
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm