Breaking down a numerical integration into two parts
이전 댓글 표시
Sorry for this stupic question.
Suppose we have this integral
Of couse this can be solved analytically. But I still want to solve it numerically as:
dx = 0.01;
x = 1:dx:4;
fx = x.^2 + 5*x;
I = trapz(x,fx)
Now, we break down this integral into two part. Analytically, we write it as:
I am confused about the lower limit of the second integral
when solving it numerically. Should it be 2 or
. If we use 2, will not it mean that we are counting one point two times, once in
and once in
?
when solving it numerically. Should it be 2 or
and once in
?채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Spectral Measurements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!