sqr=:squareroot=:%:
   sq=:square=:*:

   sq i.5
0 1 4 9 16
   sqr sq i.5
0 1 2 3 4

   sum=:+/
   sum sq 2 6 8 9
185


2009/4/26 Don Watson <[email protected]>

> 1) Use %: for square root.
> 2) Use *:  for square.
>     and so on.
>
>    +/ *: 2 6 8 9
>
>    but have to write:
>
>    sumsq =: +/ @: *:
>
>     Why is that @: necessary?
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to