MATH2070: LAB 2: Beginning Matlab - Department of Mathematics | University of Pittsburgh

MATH2070: LAB 2: Beginning Matlab - Department of Mathematics | University of Pittsburgh

瀏覽:992
日期:2025-05-19
where and . The following Matlab code computes the trapezoid rule for the case that , and . % Use the trapezoid rule to approximate the integral from 0 to 1 % of exp(x), using N (=100) intervals % Your name and the date N=40; h=1/(N-1); x=-h; % look at th...看更多