On Mon, Apr 5, 2010 at 7:51 AM, Raul Miller <[email protected]> wrote:
> On Mon, Apr 5, 2010 at 6:25 AM, Kip Murray <[email protected]> wrote:
>> For n dimensions the orientation I choose is the circular order of the 
>> standard
>> unit vectors as rows in the n by n identity matrix, it being understood that 
>> the
>> last row is between the next to last row and the first row.
>
> Ok, then
>  facepoints=: ,/@~.@:| * _1 ^ 2 #:@i...@^ #
>
> Example use:
>   facepoints 1 _1 1

Of course, this is not a complete solution.

Here is an example function to deal with what I
believe was the originally proposed data structure:

   F=: {. (] +"1 facepoints@:-) +/ %#

example use:
   F 1 0 0,:0 1 1

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

Reply via email to