How to avoid Singularity in numirical integration

44 ビュー (過去 30 日間)
ABDEL MOUMEN
ABDEL MOUMEN 2019 年 11 月 27 日
コメント済み: ABDEL MOUMEN 2020 年 3 月 26 日
I want to numerically integrate the following with Matlab:
fun=@(t) (((1 - (-1)^n*cos(n*pi*t/R)))./t);
hn = integral(fun,0,(sqrt(R^2-x^2)));
For now, I just avoided to evaluate the integral in 0, are they any way to encounter the singularity at this point.
Thank you.

採用された回答

Raynier Suresh
Raynier Suresh 2020 年 3 月 24 日
The quadgk function can handle singularity if the singularity is present at the boundary. In case if your singularity is not at the boundary you can split the integration domain to place the singularity at the boundary. Refer to the below links for more information,
  1 件のコメント
ABDEL MOUMEN
ABDEL MOUMEN 2020 年 3 月 26 日
Thank you Mr. Raynier Suresh

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumerical Integration and Differentiation についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by