How can I define a function to test   :  used as  Monad/Dyad ?

 

     ]a=:?i.10

0.434701 0 1 1 1 1 0 6 6 6

    ]b=:?i.10

0.0736612 0 0 2 3 2 3 0 7 2

   *a

1 0 1 1 1 1 0 1 1 1

   *b

1 0 0 1 1 1 1 0 1 1

    %a

2.30043 _ 1 1 1 1 _ 0.166667 0.166667 0.166667

   %b

13.5757 _ _ 0.5 0.333333 0.5 0.333333 _ 0.142857 0.5

     f=: %:*

    f

%: *

  g=: (%):*

|spelling error
| g=: (%):*
| ^

 

Linda

 

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

Reply via email to