Info
この質問は閉じられています。 編集または回答するには再度開いてください。
How to integrate a function using the trapezoid rule ?
3 ビュー (過去 30 日間)
古いコメントを表示

Create a MATLAB script to integrate the given function using the numerical scheme called Trapezoid’s Rule. a. f(x)= xe^x + 3x^2 − 2x -1 and find for with h = 0.1, 0.01 and 0.001
Now I know how to do this when it's a definite integral on a certain interval or am given a table of values but how do I go about doing this since it's an indefinite integral ? I know the general formula for the trapezoid rule (given in the image) but again it seems to be only valid with given points. Using trapz function doesn't seam to be helpful here. How do I go about doing this ?
1 件のコメント
John D'Errico
2017 年 2 月 19 日
I will only point out that this is not indeed an indefinite integral. Note the existence of limits on the integral. That makes it a definite integral.
回答 (0 件)
この質問は閉じられています。
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!