On Tue, Sep 16, 2008 at 8:54 AM, I wrote: > Here's one approach: > U=: 64007| (? 64007) * 15091(64007&|)@^ i. 4000
Um... I forgot to check if there was any special code for (m&|)@^ and it appears that there is not, so this might have some rounding errors. I also used 4000 instead of 40000. Anyways, here's a valid approach: U=: (64007 | [ * >:)^:(i.40000) ?64007 This is a bit slower, but getting the wrong answer fast is often a bad idea. (I should also note that some other posts in this thread also appear to have given me incorrect answers.) -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
