(adsbygoogle = window.adsbygoogle || []).push({}); 1. The problem statement, all variables and given/known data

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.

2. Relevant equations

Trapezoid rule of Integration is (b-a)((f(a)+(f(b))/2)

3. 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.

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Homework Help: Computational Physics Programming using fortran g95

**Physics Forums | Science Articles, Homework Help, Discussion**