Thank you very much! But I run the code:
y = x + x^2; Print["MemoryInUse is: ", MemoryInUse[] ]; b=Integrate[y,x]; ClearAll[b]; share[]; Print["MemoryInUse is: ", MemoryInUse[] ];
The result is: MemoryInUse is: 20202136 MemoryInUse is: 20516608
Thank you very much! But I run the code: $HistoryLength = 0; y = x + x^2; Print["MemoryInUse is: ", MemoryInUse[] ]; b=Integrate[y,x]; ClearAll[b]; ClearSystemCache[]; Print["MemoryInUse is: ", MemoryInUse[] ]; The result is: MemoryInUse is: 20200432 MemoryInUse is: 20490656