I use iterative method in computation. But function "Clear[ ]" or "ClearAll[ ]" can not free all memory, Which function can do this?
For example: code:
y = x+x^2;
Print["MemoryInUse is: ",MemoryInUse[]];
b = Integrate[y, x];
ClearAll[b];
Print["MemoryInUse is: ",MemoryInUse[]];
result:
MemoryInUse is: 20201752
MemoryInUse is: 20514544