How do i calculate are on Trapezoidal rule?

1 view (last 30 days)
markus palmu
markus palmu on 5 Feb 2015
Commented: Torsten on 6 Feb 2015
I have to calculate are on using Trapezoidal rule, how do i do it? f(x) = 11*sin(0.5*x)-3*x; [1,4] a = 1; b = 4; n = 7; And the answer have to be second (on the left) trapezoidal area with 2 decimal places. n = is the interval points

Answers (2)

Torsten
Torsten on 5 Feb 2015
n is the number of trapezoids or the number of interval points ?
Best wishes
Torsten.

markus palmu
markus palmu on 5 Feb 2015
Edited: markus palmu on 5 Feb 2015
The n is interval points
Thanks by markus
  3 Comments
Torsten
Torsten on 6 Feb 2015
I get A=1.56 from the above formula.
If you use your electronic calculator, maybe you have to switch from degrees to radians in the sin-function :-)
Best wishes
Torsten.

Sign in to comment.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!