It did indicate trouble elsewhere.  Thanks for the report.

The code still gives stack error in J901.  The recursion limit has been reduced.

Henry Rich

On 4/24/2019 3:28 AM, 'Mike Day' via Beta 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


---
This email has been checked for viruses by AVG.
https://www.avg.com

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to