Or
   (lr ; 0~:])

-- 
Raul

On Fri, May 22, 2015 at 2:48 PM, 'Pascal Jasmin' via General
<[email protected]> wrote:
> a workaround btw, is
>
> (lr ; 0:`1:@.(0 ~:"0"1 ])
>
> ie. first take rank 1 then rank 0 of subexpressions.
>
> ----- Original Message -----
> From: Devon McCormick <[email protected]>
> To: J-general forum <[email protected]>
> Cc:
> Sent: Friday, May 22, 2015 2:06 PM
> Subject: Re: [Jgeneral] a bug with agenda or =/~:
>
> I can re-produce this.  The smallest argument I've found for which the
> problem remains is this:
>
>    (lr ; 0:`1:@.(0 ~:"0 ])"0) &> 'f';(i: 0);i: ,3
> +--------+--------------------------------------------------------------+
> |'f'     |1                                                             |
> +--------+--------------------------------------------------------------+
> |,0      |0                                                             |
> +--------+--------------------------------------------------------------+
> |_3+i.1 7|1 1 53876069761025 0 1 3474024877079724033 3833179220766832950|
> +--------+--------------------------------------------------------------+
>
>    JVERSION
> Engine: j803/2014-10-19-11:11:11
> Library: 8.03.13
> Platform: Win 64
> Installer: J803 install
> InstallPath: c:/users/devon_mccormick/j64-803
>
> I can also re-produce this in 32-bit J8, 64-bit J7, and (differently) in
> 32-bit J7.  In this last version, the smallest problem case I found was
> this:
>
>    (lr ; 0:`1:@.(0 ~:"0 ])"0)  every  't';'f';0;i: ,3
> +--------+--------------+
> |'t'     |1             |
> +--------+--------------+
> |'f'     |1             |
> +--------+--------------+
> |0       |0             |
> +--------+--------------+
> |_3+i.1 7|48 1 1 0 1 0 0|
> +--------+--------------+
>
>    JVERSION
> Engine: j701/2011-01-10/11:25
> Library: 7.01.088
> Platform: Win 32
> Installer: j701a_win.exe
> InstallPath: c:/program files (x86)/j701
>
>
>
> On Fri, May 22, 2015 at 12:42 PM, 'Pascal Jasmin' via General <
> [email protected]> wrote:
>
>> lr =: 3 : '5!:5 < ''y'''
>>
>> this is correct result:
>>
>> (lr ; 0:`1:@.(0 ~: ])"0) every < 2 3 $ 0 2 2 3 4 5
>>
>>
>> +---------------+-----+
>> |2 3$0 2 2 3 4 5|0 1 1|
>> |               |1 1 1|
>> +---------------+-----+
>>
>> but as part of many items
>>
>>   (lr ; 0:`1:@.(0 ~:"0 ])"0)  every  'Hello World!';  '';  '0';  1;  0;
>> 0.0;  (i.0) ; 1 2 3;  'true';'false';0.1;(i.5);(0 2 2,: 3 4 5);(i: 2);(i.2
>> 3);i: 2 3
>> +------------------------------------+-----------------------+
>> |'Hello World!'                      |1 1 1 1 1 1 1 1 1 1 1 1|
>> +------------------------------------+-----------------------+
>> |''                                  |                       |
>> +------------------------------------+-----------------------+
>> |'0'                                 |1                      |
>> +------------------------------------+-----------------------+
>> |1                                   |1                      |
>> +------------------------------------+-----------------------+
>> |0                                   |0                      |
>> +------------------------------------+-----------------------+
>> |0                                   |0                      |
>> +------------------------------------+-----------------------+
>> |i.0                                 |                       |
>> +------------------------------------+-----------------------+
>> |1 2 3                               |1 1 1                  |
>> +------------------------------------+-----------------------+
>> |'true'                              |1 1 1 1                |
>> +------------------------------------+-----------------------+
>> |'false'                             |1 1 1 1 1              |
>> +------------------------------------+-----------------------+
>> |0.10000000000000001                 |1                      |
>> +------------------------------------+-----------------------+
>> |0 1 2 3 4                           |0 1 1 1 1              |
>> +------------------------------------+-----------------------+
>> |2 3$0 2 2 3 4 5                     |7 13827669224398897 0  |
>> |                                    |3                 4 5  |
>> +------------------------------------+-----------------------+
>> |_2 _1 0 1 2                         |1 1 0 1 1              |
>> +------------------------------------+-----------------------+
>> |i.2 3                               |11089070505682471 0 1  |
>> |                                    |                1 1 1  |
>> +------------------------------------+-----------------------+
>> |2 7$_2 _1 0 1 2 0 0 _3 _2 _1 0 1 2 3|49 1 0 1 1 0 0         |
>> |                                    | 1 1 1 0 1 1 1         |
>> +------------------------------------+-----------------------+
>>
>>
>>  the tests on 2d arrays that start with 0 or include a 0, when some of the
>> previous items are included return random results instead of 0 1).  The
>> result is correct if some of the previous items in this list are removed.
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
>
>
>
> --
> Devon McCormick, CFA
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to