Recent content by Cecily
-
C
Comp Sci FORTRAN: second-order ODE with Euler Method
here is my definitely wrong program... PROGRAM lab5a IMPLICIT NONE INTEGER :: i REAL :: dt, y_0, v_0, f REAL, DIMENSION(200) :: y, v, t REAL, PARAMETER :: epsilon = 1D-6 y(1) = y_0 v(1) = v_0 dt = 1.D0 DO i=2 y(i) = y(1) + v(i-1)*dt v(i) = v(i-1) + dt*f(y(i-1), v(i-1)) t(i) = t(i-1) +...- Cecily
- Post #2
- Forum: Engineering and Comp Sci Homework Help
-
C
Comp Sci FORTRAN: second-order ODE with Euler Method
Homework Statement Dear all, please help. I have tried this question and came up with strange numbers, my fortran is definitely not correct. Please help! When the effect of the air resistance is taken into account, the equation of motion for a particle of mass m falling vertically in a...- Cecily
- Thread
- Euler Euler method Fortran Method Ode
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help