[Jprogramming] waves
Bo Jacoby
bojacoby at yahoo.dk
Tue Jan 24 06:23:28 HKT 2012
Sorry for being unprecise. You load the plot package by:
load'plot'
>________________________________
> Fra: Randy MacDonald <ramacd at nbnet.nb.ca>
>Til: Programming forum <programming at jsoftware.com>
>Sendt: 21:04 mandag den 23. januar 2012
>Emne: Re: [Jprogramming] waves
>
>Folks,
>
>This may have a simple yet obscure answer: what is the provenance of
>'plot'? Using the Package Manager in JGTK, I installed 'demos/plot' yet
>could not make it work, it not being obvious where J installed to.
>Perhaps there is a Lab...
>
>On 1/21/2012 6:51 AM, Bo Jacoby wrote:
>> Hello J-ers.
>> Consider this
>> wave=: 3 : 0
>> ('N';'D';'L';'S')=.y
>> A=.,(i.N)j./-i.D
>> k=.(0j_2p1%L)&*
>> c=.S&*&^&+
>> (+ c&.k)A
>> )
>>
>> 'dot; pensize 4' plot wave 65 29 32 _0.5
>>
>> Maximize the plot window to get the proportions right.
>> This shows the power of J, arrays, and the complex number exponential function.
>> Do anyone know how to animate this such that the waves are rolling?
>>
>> -Bo
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
>
>
>--
>---------------------------------------------------------------------------
>|\/| Randy A MacDonald | If the string is too tight, it will snap
>|\\| arraymac at ns.sympatico.ca| If it is too loose, it won't play...
> BSc(Math) UNBF '83 | APL: If you can say it, it's done.
> Natural Born APL'er | I use Real J
> Experimental webserver http://mormac.homeftp.net/
>------------------------------------------------<-NTP>----{ gnat }-
>
>----------------------------------------------------------------------
>For information about J forums see http://www.jsoftware.com/forums.htm
>
>
>
More information about the Programming
mailing list