The result of b. is a character string. That's why you
were able to type it using ] .
To get a verb that produces an identity element, use
13 : ('(',(^ b. 1),') y')
To get an identity element of shape s, use
^/ (0,s) $ 0
Henry Rich
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of adam dunne
> Sent: Friday, July 20, 2007 7:45 AM
> To: programming
> Subject: [Jprogramming]: possible error identity ^ function
>
> ]Ipower=.^ b.1
> 1 $~ [EMAIL PROTECTED]
> Ipower 6
> |syntax error
> | Ipower 6
>
> Surely Ipower should be 1: $~ [EMAIL PROTECTED]
>
> I=.1: $~ [EMAIL PROTECTED]
> I 6
> 1
> I i.6 3 4
> 1 1 1 1
> 1 1 1 1
> 1 1 1 1
> ----------------------------------------------------------------------
> For information about J forums see
> http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm