[Jprogramming] Using 13 in verb gives strange result
Devon McCormick
devonmcc at gmail.com
Fri Jan 17 15:47:05 UTC 2020
I get this both in 8.07 and 9.01 under Windows 7:
ABSx=: 3 : '(%. (%: y*y))*y*y' "0
ABSx _2 0 2
2 0 2
ABSt=: 13 : '(%. (%: y*y))*y*y' "0
ABSt _2 0 2
2 0 2
On Fri, Jan 17, 2020 at 8:23 AM Brian Schott <schott.brian at gmail.com> wrote:
> BS =: 13 : '(%. (%: y*y))*y*y' "0
> BS
> (([: %. [: %: *~) * *~)"0
> BS _2 0 2
> 2 0 2
> JVERSION
> Engine: j901/j64avx/darwin
> Release-c: commercial/2020-01-11T12:22:31
> Library: 9.01.20
> Platform: Darwin 64
> Installer: J901 install
> InstallPath: /users/brian/j901
> Contact: www.jsoftware.com
>
> On Fri, Jan 17, 2020 at 6:40 AM 'Rob B' via Programming <
> programming at jsoftware.com> wrote:
>
> > Is this a problem with 13 ?
> >
> > ABS =: 3 : '(%. (%: y*y))*y*y' "0
> > ABS _2 0 2
> > 2 0 2
> > ABS =: 13 : '(%. (%: y*y))*y*y' "0
> > ABS _2 0 2
> > 0j1 0 1
> >
> > Because of my old iPad I'm using this...
> > j701/2011-01-10/11:25 build: Jun 10 2012 21:52:05
> >
> > Please ignore the weird coding of this verb, I won't try to explain!
> >
> > Rob.
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
>
>
> --
> (B=) <-----my sig
> Brian Schott
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
Devon McCormick, CFA
Quantitative Consultant
More information about the Programming
mailing list