On Tue, Apr 6, 2010 at 7:55 AM, Kip Murray <[email protected]> wrote:
> Raul and Oleg, I am eager to check your solutions, but it may be tomorrow or
> even Thursday before I can get back to them.  Have you tried them on 
> non-cubes,
> for example 0 0 0 ,: 4 3 2 (easy to draw and visually check answers)?  --Kip

Mine only works on cubes, and throws length errors otherwise, as I noted
in my first post in this series.  That was in part an impression based
on your original posts in my cube thread.

Now that I think understand what you were asking:for:

   points=: [: >@,@{ [: <"1@|: +/\
   faces=: ] -~/\@,:"1 [ #~ 1 = ] +/@:="1 [
   box=: ((faces {.), (faces {:))@points

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

Reply via email to