网上所有的解决方案都是
Solution:
This may be a problem with the way memory management is performed by Maple. At present, the only potential workaround is to wrap your call to a symbolic calculation that operates on numbers with large numbers of digits inside a TRY/CATCH block and clear the Maple function using the following commands:
For Symbolic Math 2.1.3 (R13) and earlier:
maple clear
% or
maple restart
For Symbolic Math 3.0 (R13+) and later:
clear maplemex
Alternatively you may increase the frequency of automatic garbage
collections, which occurs (approximately) after every <integer>
words used in maple using the following command:
maple('kernelopts(gcfreq=10000)');
For further information on the use of this command type:
mhelp kernelopts