How to integrate indeterminate integral?

1 回表示 (過去 30 日間)
AGS
AGS 2016 年 12 月 2 日
コメント済み: AGS 2016 年 12 月 2 日
I am trying to integrate an expression using the integral command of MATLAB. The limits of the integral are 0 to Infinity. The integral is indeterminate due to the presence of an exp(x) term in the expression and hence MATLAB gives me NaN. I know I can use l'hopitals rule to solve indeterminate integrals. But, I don't seem to be able to gather how to get this done in MATLAB? Are there options in MATLAB integral function that can be tweaked to handle such cases? What are my options to solve such an indeterminate integral in MATLAB?
  1 件のコメント
Torsten
Torsten 2016 年 12 月 2 日
What do you mean by
The integral is indeterminate due to the presence of an exp(x) term in the expression and hence MATLAB gives me NaN. I know I can use l'hopitals rule to solve indeterminate integrals.
?
Try MATLAB's "int". If this does not work, maybe somone can help if you show us the integral you are trying to solve.
Best wishes
Torsten.

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

回答 (1 件)

KSSV
KSSV 2016 年 12 月 2 日
編集済み: KSSV 2016 年 12 月 2 日
Try quadgk once.
  1 件のコメント
AGS
AGS 2016 年 12 月 2 日
Already tried this before putting up the question. Unfortunately, this doesn't work.

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

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by