Using J as a calculator, the first option is most appropriate.

 

  >: i.4

1 2 3 4

   

   >:@i.4

1 2 3 4

   

  :>:i.4

|domain error

| | [:>:i.4

 

However, f displays to one style that has a domain error.  What if f
displayed the same result as g ?

 

   f=: 13 :'>:i.y'

   f 4

1 2 3 4

   f 

[: >: i.                      

 

   g=: 13 :'>:@i.y' 

   g 4

1 2 3 4

g

>:@i.

 

Linda

 

 

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

Reply via email to