What you are proposing is exactly  x 3!:4"0 y  for positive x and 
x ''&$@(3!:4) "1 y   for negative x .



----- Original Message -----
From: david alis <[EMAIL PROTECTED]>
Date: Sunday, September 2, 2007 23:03
Subject: [Jbeta] concerning ic (aka 3!:4)
To: Beta forum <[email protected]>

> The conversion routine 3!:4 only accepts scalar or vector arguments.
> 
> Would it be possible to extend it to behave in a similar way to 
> #. and #:
> 
> The following is a model:
>  ic =: 3!:4
>  cnvt =: ( 3 : ' ($y)$_2[\ 1 ic ,y') :. ( 3 : '(}:$y)$_1 ic,y')
> 
>    $ cnvt i.20 30 40
> 20 30 40 2
>    (-:  ]&.cnvt ) i.20 30 40
> 1
> 
> As presently implemented:
>    1 ic i.20 30 40
> |rank error: ic
> |   1     ic i.20 30 40
> 
> Regards
> David
> 
> PS: On a lesser point, why does the following produce a spelling 
> error?  test =.  (+):.(-)
> but this doesn't
>     pp=. (+) :.(-)
> 
> (j601/2006-11-17/17:05 : J64)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to