[Jprogramming] Puzzling result

Raul Miller rauldmiller at gmail.com
Fri Sep 8 10:44:43 UTC 2017


Ok, yes - if one of the arguments is extended and the other is integer
and the operation supports it, the result will be extended. That said,
this depends on the operation.

Thanks,

-- 
Raul


On Fri, Sep 8, 2017 at 5:39 AM, Erling Hellenäs
<erling at erlinghellenas.se> wrote:
> We are still diskussing this case, nothing else. Extended left argument to
> Residue, integer right argument. /Erling
>
>      n=.14
>
> (n^2x) |5729082486784839
>
> 147
>
>      3!:0 (n^2x)
>
> 64
>
>      3!:0 (n^2x) |5729082486784839
>
> 64
>
>
>
> Den 2017-09-08 kl. 11:30, skrev Raul Miller:
>>
>> You can answer this for yourself by checking datatype on intermediate
>> arguments and results.
>>
>> For example:
>>
>>     datatype 14
>> integer
>>     datatype *: 14
>> integer
>>     datatype 5729082486784839
>> integer
>>     datatype (*: 14)|5729082486784839
>> integer
>> ...
>>     datatype 14 ^ 2x
>> extended
>> ...
>>
>> I hope this helps,
>>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm


More information about the Programming mailing list