Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fortran Numerical Methods questions

Status
Not open for further replies.

Khan12345678

Technical User
Dec 9, 2013
3
GB
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 for that, but i was wondering what does s = s + f(a + (b-a)*k/n) mean? like what is s?
And also this calculates it for 1 value, i want atleast 10
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top