Chris, The wiki page didn't solve the mystery of 'radar' Load 'plot' T=:2p1 d=: 13 :'(0{x)-(-/x)*(i.y)%<:y' NB. domain intervals tf=:1 o. 3*y plot 1 o. tf 'radar' plot tf
The lines above follow the suggestion of Henry Rich and work like a charm, but how does 'radar' do its magic? When I tried the suggestions in the wiki page, here's what happened. Load 'jzplot' c=: conew 'jzplot' plot__c tf plot__c 'radar' tf |option not found: radar: signal | signal'option not found: ',j The polar graph of the trifolium fails. Linda -----Original Message----- From: programming-boun...@jsoftware.com [mailto:programming-boun...@jsoftware.com] On Behalf Of chris burke Sent: Wednesday, March 21, 2012 8:45 PM To: Programming forum Subject: Re: [Jprogramming] Challenge 8 A Shamrock for St. Patrick See: http://www.jsoftware.com/jwiki/Plot/Class On Thu, Mar 22, 2012 at 7:49 AM, Linda Alvord <lindaalv...@verizon.net>wrote: > Copy the expression below into ijix and run display. A lovely graph > of a trifolium appears. It seems that it is arriving by mental telepathy. > There > is no sign of 'radar' anyhere. Use load 'plot' and there is no > sign of 'radar'. It is not in names_j_ or names_z_ . So where and what is it? > > -----Original Message----- > From: programming-boun...@jsoftware.com > [mailto:programming-boun...@jsoftware.com] 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 > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm