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!