The following message might not have been too clear, as I was in a hurry...

The alternative number of partitions function, pn, proposed in the J Wiki essay 
cited below, works fine for an argument of 1000 in J807, but not in J901 
beta-c, where it raises a stack error. I’ve just now checked that this can 
happen immediately after firing up Jqt 901 beta-c;  it isn’t apparently a side 
effect of earlier memory-heavy work in the J901 engine.

FWIW,  pn 1000 is ok on this iPad’s J701,  but pn 10000 crashes the its J 
session almost immediately,

Thanks again,

Mike

> On 24 Apr 2019, at 08:28, 'Mike Day' via Beta <[email protected]> wrote:
> 
> Another problem, (in Beta c as I'd rolled back) - not too important in itself 
> but might
> 
> indicate trouble elsewere
> 
> J Wiki Essay
> 
> https://code.jsoftware.com/wiki/Essays/Partitions#The_Number_of_Partitions
> 
> The/memo/adverb M.can be used to advantage here.
> 
>   pn =: -/@(+/)@:($:"0)@rec ` (x:@(0&=)) @. (0>:]) M.
>   rec=: - (-: (*"1) _1 1 +/ 3 * ]) @ (>:@i.@>.@%:@((2%3)&*))
> 
>   pn 1000
> 24061467864032622473692149727991
> 
> But:
> 
>    pn 1000
> |stack error: rec
> |       pn 1000
>    pn 100
> 190569292
> 
> JVERSION
> 
> Engine: j901/j64/windows
> 
> Beta-c: commercial/2019-04-03T11:03:34
> 
> Library: 9.01.03
> 
> Qt IDE: 1.8.2/5.12.2
> 
> Platform: Win 64
> 
> Installer: J901 install
> 
> InstallPath: c:/d/j901
> 
> Contact: www.jsoftware.com
> 
> 
> whereas it worked in J8:
> 
>    pn 1000
> 24061467864032622473692149727991
> 
>    JVERSION
> Engine: j807/j64/windows
> Release-d: commercial/2019-03-18T13:21:35
> Library: 8.07.25
> Qt IDE: 1.7.9/5.9.6
> Platform: Win 64
> Installer: J807 install
> InstallPath: c:/d/j807
> Contact: www.jsoftware.com
> 
> 
> Thanks,
> 
> Mike
> 
> 
> 
> 
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
> ----------------------------------------------------------------------
> 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