Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is the 4th HW assignment. This time our subject is integration (numerical) and the subroutine is coming from Ch 4, namely Gauss-Legendre Integration code:
This is the 4th HW assignment. This time our subject is integration (numerical) and the subroutine is coming from Ch 4, namely Gauss-Legendre Integration code: gauleg.f90. You would need an external Func(x) in your code where your integration function is written. This is f(x)=x^2, exactly just like the examples we did in the class. I also share them with you here.
So now, please write a main function (just on FORTRAN) to call this gauled.f90 which also calls Func.f90 and calculate our simple reference integral of x^2 between 0 to 5 which will definetly be : 41.66666 !
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started