(a) (10 pts) 保留迴圈(for loop) 加速計算. (b) (10 pts) 將程式以向量化計算加速 clear all. N pt=1e5; dx=(1−0)/N pt; x=linspace(0,1,N pt+1); for ii=1:N pt+1.
確定! 回上一頁