I have following Matlab code to calculate summation of exponential summation term:
This code takes approx. 600 seconds to give final output s. Is there any way to reduce this computation time?
sum1 = 0;s = 0;for i=1:1000000000 for j=1:3 sum1 = sum1+(i*proc(j))^2; end s = s+exp(-sum1);end
Best Answer