Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
33 views

F (X) 0.587+ 25 X 200 X: in Class Assignment To Be Submitted Directly To Blackboard During The Class Time

The document provides instructions for an in-class assignment to estimate the integral of a 5th order polynomial function using Trapezoidal, Simpson 1/3, and Simpson 3/8 rules in MATLAB. Students are asked to show the results in a table with the integration method, interval, calculated value, and percent error compared to the exact value. The exact integral is provided as 16843.011. The summary shows the calculations for intervals of 0.1, 0.5, and 0.01, with Simpson 1/3 and Simpson 3/8 having less than 0.001% error while Trapezoidal has up to 10% error for some intervals. Simpson's rule is determined to give the most accurate estimations.

Uploaded by

Omar Najm
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

F (X) 0.587+ 25 X 200 X: in Class Assignment To Be Submitted Directly To Blackboard During The Class Time

The document provides instructions for an in-class assignment to estimate the integral of a 5th order polynomial function using Trapezoidal, Simpson 1/3, and Simpson 3/8 rules in MATLAB. Students are asked to show the results in a table with the integration method, interval, calculated value, and percent error compared to the exact value. The exact integral is provided as 16843.011. The summary shows the calculations for intervals of 0.1, 0.5, and 0.01, with Simpson 1/3 and Simpson 3/8 having less than 0.001% error while Trapezoidal has up to 10% error for some intervals. Simpson's rule is determined to give the most accurate estimations.

Uploaded by

Omar Najm
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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