- #1
jhosamelly
- 128
- 0
Homework Statement
Create a program that computes for the value of sine function. Then compute for its
integral from 0 to pi with N intervals, where N=4,8,16,256 and 1024 and compare the
result for the trapezoid and simpson method.
Homework Equations
Trapezoid rule of Integration is (b-a)((f(a)+(f(b))/2)
The Attempt at a Solution
here is the code I made
but I'm getting "Unclassifiable statement" at the i1 equation.
Is there something wrong with my code? We are using fortran 90
I'm trying the trapezoid rule 1st.