Khan12345678
Technical User
Hi guys, I was wondering if anyone could help me out on this question, been trying but can't get anywhere.
Thanks
Write a program that:
A) Performs numerical integration using the Extended Trapezoid Rule
B) Performs numerical integration using the Extended Simpson’s Rule (see Appendix)
Carry out all tasks within a single program, implementing each different integration method
as a subroutine and the equation to be integrated as a function.
Use your program to evaluate the following integral with both methods:
I=x^5+2x^4+9.3x^3+x^2+x-0.4
for the following bounds:
i) a=0,b=1
ii) a=-1,b=0
Test your program with the analytical solution for I
1.
Test the results of your program with both methods for different numbers of intervals.
Thanks
Write a program that:
A) Performs numerical integration using the Extended Trapezoid Rule
B) Performs numerical integration using the Extended Simpson’s Rule (see Appendix)
Carry out all tasks within a single program, implementing each different integration method
as a subroutine and the equation to be integrated as a function.
Use your program to evaluate the following integral with both methods:
I=x^5+2x^4+9.3x^3+x^2+x-0.4
for the following bounds:
i) a=0,b=1
ii) a=-1,b=0
Test your program with the analytical solution for I
1.
Test the results of your program with both methods for different numbers of intervals.