Integration over a region determined by a given function
이전 댓글 표시
How can we compute an integral of the form:
where
without writing it as a integral on
. I want it so because when A is a very tiny set then the integral function in Matlab applied for the inteval
gives a big error.
without writing it as a integral on Here $\phi:(0,1)\to\mathbb{R}$ is a given function. So is
(a small number)
댓글 수: 1
The function to be integrated over (0;1) is
g(x) = f(x) * Indicatorfunction (|phi(x)| < a)
Since this function usually is highly discontinuous, numerical methods (like the ones used in Matlab's "integral") are difficult to apply.
You could try to calculate I_n = trapz(X_n,Y_n) with X_n= linspace(0,1,n) and Y_n = g(X_n) for n = 2,4,8,16,32,... and see whether I_n converges. But note that if phi is very bad behaved, I_n might converge, but not to the correct value of the integral or I_n might not converge although the integral exists.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!