They look like waves to me!  It would be great to be able to cut the image
and paste it into a message like this.

Linda

-----Original Message-----
From: programming-boun...@jsoftware.com
[mailto:programming-boun...@jsoftware.com] On Behalf Of Bo Jacoby
Sent: Saturday, January 21, 2012 5:51 AM
To: programming@jsoftware.com
Subject: [Jprogramming] waves

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

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to