How would I code the trapezoidal rule and simpsons rule for this question with MATLAB. The problem is that the upper y limit is 0.5+0.5x and this is causing problems with my code.
7 ビュー (過去 30 日間)
古いコメントを表示
回答 (1 件)
Soumya Saxena
2017 年 9 月 14 日
Please consider using the "trapz" function:
Also consider the example on the "integral2" function documentation:
Please also refer to the following file exchange link for simpson's rule:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Numerical Integration and Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!