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 で Function Creation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!