Re: [Jprogramming] Ike and Mike

2013-02-25 Thread Graham Parkhouse
On Mon, 25 Feb 2013 19:00:45 +0100 Aai wrote: > pushing peas around(?) > > >:^:(>:~:+:@<:)^:(_) 1 > 3 Mind broadening! Thank you! Graham -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Explicit v tacit

2013-01-31 Thread Graham Parkhouse
Thank you all for your comments. Here is an illustration of the difference in performance between tacit and explicit definitions, where there is minimal difference in the computations demanded by each. Both calculate the mean along the last axis of an array and both have infinite rank. tacit_m

[Jprogramming] Explicit v tacit

2013-01-30 Thread Graham Parkhouse
Kip Murray wrote: Message: 6 Date: Fri, 25 Jan 2013 20:31:56 -0600 From: km To: "programm...@jsoftware.com" Subject: Re: [Jprogramming] applying >1 gerunds to a set of items Message-ID: Content-Type: text/plain; charset=utf-8 Dan, most of the code in the z locale is explicit. What is th

Re: [Jprogramming] joining to an empty list

2013-01-12 Thread Graham Parkhouse
iginal example a list is appended to a table. The list is > treated > as a one-row table. > > > > On Fri, Jan 11, 2013 at 2:39 PM, Graham Parkhouse < > graham.parkho...@ntlworld.com> wrote: > > >(0 2$0),i.2 2 > > 0 1 > > 2 3 The point of the exam

Re: [Jprogramming] joining to an empty list

2013-01-11 Thread Graham Parkhouse
(0 2$0),i.2 2 0 1 2 3 On Fri, 11 Jan 2013 09:00:42 -0800 Roger Hui wrote: > It is not a bug and the following sequence illustrates why the behavior > is > reasonable: > >(n$0) , i. 2 2 [ n=: 3 > 0 0 0 > 0 1 0 > 2 3 0 >(n$0) , i. 2 2 [ n=: 2 > 0 0 > 0 1 > 2 3 >(n$0) , i. 2 2 [

Re: [Jprogramming] xkcd 356

2013-01-09 Thread Graham Parkhouse
> -Original Message- > Date: Tue, 08 Jan 2013 18:29:12 -0800 > From: Don & Cathy Kelly > To: Raul Miller > Cc: programm...@jsoftware.com > Subject: Re: [Jprogramming] xkcd 356 > Message-ID: <50ecd5f8.3050...@shaw.ca> > Content-Type: text/plain; charset=UTF-8; format=flowed > > In the c

Re: [Jprogramming] atop continues to puzzle me

2013-01-04 Thread Graham Parkhouse
On Friday, January 04, 2013 9:10 AM Linda Alvord wrote: ... >f=: 13 :'([:<"1#"0)">y' > >3 4 5 f i.3 > > --T---T-? > ?0 0 0?1 1 1 1?2 2 2 2 2? > L-+---+-- Yes, that's done it! So verb trains, performed with the appropriate rank are just as good as composi

Re: [Jprogramming] atop continues to puzzle me

2013-01-04 Thread Graham Parkhouse
> On Wed, Jan 2, 2013 at 10:04 AM, Raul Miller > wrote: > > Here's a definition for at which works exactly like @ > > > >at=: 2 :'([: u v)"v at=: 2 :'([: u v)"v' 3 4 5 < at #"0 i.3 +-+---+-+ |0 0 0|1 1 1 1|2 2 2 2 2| +-+---+-+ Linda - we've done it! We'

Re: [Jprogramming] Atop continues to puzzle me

2013-01-03 Thread Graham Parkhouse
Subject: Re: Atop continues to puzzle me This post was initially titled 'The benefits of function composition' See my PS. There are things you can achieve with function composition that cannot be achieved so elegantly any other way: 3 4 5<@#"0 i.3 +-+---+-+ |0 0 0|1 1 1 1|2

Re: [Jprogramming] J v NumPy

2012-12-11 Thread Graham Parkhouse
On Mon, 10 Dec 2012 Edward Mokurai Cherlin wrote: > Start here. > > http://docs.scipy.org/doc/ > Numpy and Scipy Documentation > > Welcome! This is the documentation for Numpy and Scipy . > > Links to User Manual and Reference Manual. Thanks, Ed! Numpy has got what I need for my array manipul

Re: [Jprogramming] J v Python

2012-12-07 Thread Graham Parkhouse
Thank you for all your responses! My thoughts are: 1. Give up engineering and teach J in math classes in schools. This is not an opportunity open to me, I'm afraid Linda, for several reasons. I think I will serve everybody best by focusing on my particular problem and helping my colleagues to unde

Re: [Jprogramming] J v Python

2012-12-06 Thread Graham Parkhouse
ri scripts: 341 362* 368 370* 378 379 383* 384 388 390 397 398* * - still on my unsolved list - perhaps I should look at Python for these! Mike On 06/12/2012 10:41 AM, Graham Parkhouse wrote: > I am profiting from a foray into Python, which,

[Jprogramming] J v Python

2012-12-06 Thread Graham Parkhouse
I am profiting from a foray into Python, which, it is claimed, is much more easily understood than J. Some people boast they can program in Python as quickly as they can type. Problem 1 of Project Euler: Find the sum of all the multiples of 3 or 5 below 1000. Programming in J, I like to see inte