Ric wrote:
>  adv2 =: 1 : (':';'m*y-x')

Viktor Cerovski wrote:
>  [We can write this tacitly, thus]
>
>   av2t =: ("_)(`*`(-~))(`:6)
> 
>  which can be simplified to:
>   av2t1 =: ("_)(`*`-)(`:6)~
>
>  PS: Typed on a handheld device.

Bob Therriault responded:
>  I seem to get a syntax error from your definitions

Just move the parens:

   av2t2 =: ("_)(`*)(`(-~)) (`:6)

correspondingly,

   av2t3 =: ("_)(`*)(`-)(`:6)~  NB.  Simplification by substitution:  (N V V~) 
-: (N V V)~

-Dan

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

Reply via email to