The strange thing is observed when I change the 9th and the 10th lines from Y2 = 312/100 n2; Y1 = 312/100 n1; to Y2 = 3.12 n2; Y1 = 3.12 n1;
. With the "312/100" coefficients, the execution time is short and the memory usage is (relatively) minimal. However, with the "3.12" coefficients, Mma used up all the RAM (about 25 MB available for it) and has to resort to virtual memory. I don't know whether it will eventually produce results since I interrupted the process.
Any idea of why this might happen and how could we avoid it? Thank you in advance!