Recent content by surfernj

  1. S

    Fortran I with Fortran 90 : Simpson's rule

    I just realized what the problem is. I coded the equation in wrong! I coded f= e**((x/2)**2) when the equation I'm supposed to code in is f=e**(x**2/2), from 0 to 2 the area is 4.72890778561. LOL I can't believe I made such a stupid mistake!
  2. S

    Fortran I with Fortran 90 : Simpson's rule

    You're correct! I don't know what I was looking at but the area is correct.
  3. S

    Fortran I with Fortran 90 : Simpson's rule

    ok its running now however I'm trying to find the area from the function f(x)= e^(x/2)^2 from 0 to 2 and i keep getting 2.9... using 20 or 50 divisions when the answer should be 4.7... heres the code: 11 IMPLICIT NONE 12 INTEGER, PARAMETER:: DOUBLE=kind(1.0D0) 13...
  4. S

    Fortran I with Fortran 90 : Simpson's rule

    thanks i'll try it...i don't have class again till monday so i'll post my results then.
  5. S

    Fortran I with Fortran 90 : Simpson's rule

    the first program...i get errors along the lines of.."Contains" requires stop or return...also errors that state n & m must be used with "intent". In total its about 17 errors. I don't have the compiler on my home pc or i'd post the actual error messages for you.
  6. S

    Fortran I with Fortran 90 : Simpson's rule

    can't get this to work I tried running this as it's written using the Lahey compilier and i get a load of errors. What am I doing wrong?