Brian,  Maybe g is a little simpler than f.

   a
0 1 1 1 1 0 1 1 1 1 1 0 1 1
   f
[: ; <;.1~
   g
[: }: 1 |. ]
   (f a)-: g a
1
   
Linda

-----Original Message-----
From: Programming <[email protected]> On Behalf Of Brian 
Schott
Sent: Sunday, February 24, 2019 1:41 PM
To: Programming forum <[email protected]>
Subject: Re: [Jprogramming] What is this?

Maybe I'm confused, but I have not figured out why the results of the two 
calculations produce different length results: 13 for the first and 14 for the 
second when the inputs to both are 14? I imagined that was the reason for the 
original post.

  #; <;.1~ [0,1 1 1 1 0 1 1 1 1 1 0 1 1
13
  #;  <;.1~ [1,-.1 1 1 1 0 1 1 1 1 1 0 1 1
14
   #0,1 1 1 1 0 1 1 1 1 1 0 1 1
14
   #1,-.1 1 1 1 0 1 1 1 1 1 0 1 1
14


On Sun, Feb 24, 2019 at 11:02 AM Henry Rich <[email protected]> wrote:

> Looks OK to me.  What's your beef?  the lists are not identical.
>
> Henry Rich
>
> On 2/24/2019 4:48 AM, R.E. Boss wrote:
> >     <;.1~ [0,1 1 1 1 0 1 1 1 1 1 0 1 1
> > +-+-+-+---+-+-+-+-+---+-+-+
> > |1|1|1|1 0|1|1|1|1|1 0|1|1|
> > +-+-+-+---+-+-+-+-+---+-+-+
> >
> >     <;.1~ [1,-.1 1 1 1 0 1 1 1 1 1 0 1 1
> > +---------+-----------+-----+
> > |1 0 0 0 0|1 0 0 0 0 0|1 0 0|
> > +---------+-----------+-----+
> >
> >     JVERSION
> > Engine: j807/j64nonavx/windows
> > Release-b: commercial/2019-01-22T18:48:45
> > Library: 8.07.22
> > Qt IDE: 1.7.9/5.9.6
> > Platform: Win 64
> > Installer: J807 install
> > InstallPath: c:/users/ j64-807-nonavx
> > Contact: 
> > https://nam01.safelinks.protection.outlook.com/?url=www.jsoftware.co
> > m&amp;data=02%7C01%7C%7Cb5098cf163f940455bb808d69a87badd%7C84df9e7fe
> > 9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636866305072590868&amp;sdata=ARkB8
> > Lm7PS507YTWRF%2BKK7iu743bS9lIPj70hj2Kugk%3D&amp;reserved=0
> >
> >
> > R.E. Boss
> > --------------------------------------------------------------------
> > -- For information about J forums see 
> > https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww
> > .jsoftware.com%2Fforums.htm&amp;data=02%7C01%7C%7Cb5098cf163f940455b
> > b808d69a87badd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C63686630
> > 5072590868&amp;sdata=f2Uqqiqj1v7Wlqif6DWaUi6WFF8ALnoiXU8jDuS0KtM%3D&
> > amp;reserved=0
>
>
> ---
> This email has been checked for viruses by AVG.
> https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
> avg.com&amp;data=02%7C01%7C%7Cb5098cf163f940455bb808d69a87badd%7C84df9
> e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636866305072590868&amp;sdata=XVv
> W%2F%2B5uD8C%2BJ7feOXmWrI1B0dHhBG%2Bt9HM%2FlieSPB4%3D&amp;reserved=0
>
> ----------------------------------------------------------------------
> For information about J forums see 
> https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.j
> software.com%2Fforums.htm&amp;data=02%7C01%7C%7Cb5098cf163f940455bb808
> d69a87badd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C63686630507259
> 0868&amp;sdata=f2Uqqiqj1v7Wlqif6DWaUi6WFF8ALnoiXU8jDuS0KtM%3D&amp;rese
> rved=0



--
(B=) <-----my sig
Brian Schott
----------------------------------------------------------------------
For information about J forums see 
https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&amp;data=02%7C01%7C%7Cb5098cf163f940455bb808d69a87badd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636866305072590868&amp;sdata=f2Uqqiqj1v7Wlqif6DWaUi6WFF8ALnoiXU8jDuS0KtM%3D&amp;reserved=0
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to