Re: [Jprogramming] Project Euler 85, Python and J

2014-10-14 Thread Mike Day
Whoops! Yes, I'd been using I. in a slightly different structure, with a two-column table of lower and upper bounds on n for every m, and had forgotten to change it to (i. <./) for the vector form with all lower bounds followed by all upper bounds; I'd found it slightly less messy, and (i.<./)

Re: [Jprogramming] Project Euler 85, Python and J

2014-10-14 Thread Raul Miller
Your approach looks very sensible. But I am curious about this result, which is not what I expected: bestmn 1e3 7 8 8 7 If I change the second to last line in bestmnv to read i =. (i. <./) d I get bestmn 1e3 7 8 Are there cases where this would be a problem? Thanks, -- Raul On Tue, O

[Jprogramming] System Maintenance

2014-10-14 Thread chris burke
The Jsoftware server is scheduled for maintenance on 2014-10-16 for 2 hours starting at 20:00 UTC. During this time email and website will be unavailable. -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Project Euler 85, Python and J

2014-10-14 Thread Mike Day
OK - I've re-engineered a solution method which deals with required numbers several orders of magnitude higher than 2e6. I expect my original approach was the whole array approach as recently discussed, but I can't find it anywhere in my files. Apologies for any silly line-throws. The maths sh