I liked the video, thanks for sharing. BTW, you could have used p: Instead of q: for testing primality. Unless there was some reason, exposition or whatnot, you used q:
--- Original Message --- From: "Devon McCormick" <devon...@gmail.com> Sent: September 8, 2015 9:10 PM To: "J-programming forum" <programm...@jsoftware.com> Subject: Re: [Jprogramming] video: Ulam's Spiral Hi Michal - Thanks for posting this. We'll probably discuss it at this evening's NYCJUG meeting. Do you have any tips on the mechanics of putting this together? I'm particularly interested in how you did the J session side-by-side with your "talking head". Thanks, Devon On Wed, Sep 2, 2015 at 5:16 AM, Michal Wallace <michal.wall...@gmail.com> wrote: > Thanks for the feedback, everyone! > Next time I do one of these, I'll post the script before I film it. > > I didn't know about (or remember?) the volutions article. > I just threw the code together in a couple minutes, and thought it would > make a fun video for J outsiders. > > > > On Tue, Sep 1, 2015 at 3:11 PM, 'Pascal Jasmin' via Programming < > programm...@jsoftware.com> wrote: > > > I'm not sure if I came up with this or not, > > > > but a spiral that starts at 0, and initially turns right. The y argument > > is the square shape of the resulting spiral, so it doesn't end at the top > > right like yours. > > > > (,~ $ |.@/:@(+/\)@(_1&|.@(}:@(2: # >:@i.) # <:@+: $ _1: , ] , 1: , -))) 7 > > > > some of the neat properties of this, > > squares of even numbers go diagonally up left from 0. > > squares of odd numbers go diagonally down right from 1 > > > > That is a very cool video though. A version of q: that will not fail for > > 0, > > > > viewmat (#@q: :: 0:)"0 (,~ $ |.@/:@(+/\)@(_1&|.@(}:@(2: # >:@i.) # <:@+: > $ > > _1: , ] , 1: , -))) 15 > > > > ----- Original Message ----- > > From: Michal Wallace <michal.wall...@gmail.com> > > To: programm...@jsoftware.com > > Cc: > > Sent: Monday, August 31, 2015 11:09 PM > > Subject: [Jprogramming] video: Ulam's Spiral > > > > Hey all, > > > > I made a 15 minute video about a line of J code I wrote a while back: > > > > https://www.youtube.com/watch?v=dBC5vnwf6Zw > > > > -Michal > > ---------------------------------------------------------------------- > > 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 > -- Devon McCormick, CFA ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm