Can I use integral with symbolic/variable interval values?
古いコメントを表示
Hi. I'm wondering if it is possible to use, in some way, variable or symbolic interval values for the integral function. I need to solve a similar kind of problem shown below, can't think of a way to do it (my functions are quite huge, so it's not easy to somehow simplify it).
- Function 1: f(s)=...
- Function 2: g(x)=...
- f_new = integral(@(s) f, 0, x)
Now, both f_new and g is a function of x.
- Final function = integral(@(x) f_new*g, 0, 2)
Hope the question is somewhat clear. If not, just ask. Any help is appreciated! :)
採用された回答
その他の回答 (1 件)
Brede Løvik Lillehammer
2014 年 1 月 21 日
1 投票
1 件のコメント
Walter Roberson
2014 年 1 月 21 日
int() is for symbolic integration. integral() is for numeric integration.
カテゴリ
ヘルプ センター および File Exchange で Numerical Integration and Differentiation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!