how to integrate implicitly in matlab

2 ビュー (過去 30 日間)
TT
TT 2014 年 11 月 24 日
回答済み: Roger Stafford 2014 年 11 月 24 日
Hi,
How can I integrate implicitly in MATLAB? For instance, I want to integrate 1/sin(x) from o to y.
Thanks

回答 (1 件)

Roger Stafford
Roger Stafford 2014 年 11 月 24 日
I presume by "implicitly" you mean, given the value of the integral, you are to find the necessary upper limit of integration (or lower limit, or both limits dependent on some common parameter.)
If so, just use matlab's 'fzero' function where the function it calls on is the integral value over the variable limit(s) minus the required value. You can find this integral using either the symbolic 'int' or the numerical quadrature function, 'integral'.
Incidentally, you may have picked a poor example. If 'o' really means zero, the integral of 1/sin(x) would be divergent at that lower limit - that is, it would approach infinity as your lower limit approaches zero.

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by