How can I integrate an equation with using trapezoidal rule?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
There is an equation like y=cosx. I want to integrate this equation from 0 to pi. However, I should use the trapezoidal rule to find integral. There are 5,7,...,43 points(h) that are equally spaced. For each number of points(h) I should find the Integral. For instance h=5, I=? this process should be repeated for all h values from 5 to 43. regards,
0 Kommentare
Antworten (1)
dpb
am 4 Jan. 2016
This pretty clearly would be a homework type problem, so a) what have you tried so far, and b) what part of
doc trapz % seems to cause confusion?
0 Kommentare
Siehe auch
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!