You are on page 1of 1

In Class Assignment

To be submitted directly to blackboard during the class time

By using Matlab software, estimate the integral of the below equation using,
Trapezoidal rule, Simpson 1/3, and Simpson 3/8 rules. Indicate which of the previous
methods gives an accurate estimation to the result and for which selected interval.
(Show your results in tabulated form).

f ( x )=0.587+ 25 x 200 x 2 +675 x 3900 x 4 + 400 x 5

Where N is the last three digits of your ID number.


The exact integration value can be found in this website:
https://www.symbolab.com/solver/definite-integral-calculator

Interval Error% Interval=0.5 Error Interval=0.01 Error


=0.1 % %
trapz 16911 0.40% 18535 10.05 16844 0.005
% %
Simpson(1/3) 16843 0.000 16896 0.31 16843 0.0006
6% % %
Simpson(3/8) 16843 0.000 16961 0.28 16843 0.0006
6% % %
16843.011

conclusion
The exact integration value I got was 16843.011. and I tried calculation by matlab
for three intervals 0.1,0.5 and 0.01 I got values for traps, simpson (1/3) and
simpson(3/8). After I got values I calculated error %. The error % was less or equal
to zero for simpson. So simpson gives more accurate value than trapz.

You might also like