Professional Documents
Culture Documents
Program Modular
Program Modular
modular_eu
implicit none
real (kind*8) ::: euler.dt, ti,tf, xi, yy
dt=0.05
ti= 0.0
tf=2.0
xi= 0.0
"
real (kind=8)
tao=1.0
!m/s2
t=ti
x=xi
h=dt
"tiempo x dxdt"
do
if (t+h)tf) then
h=tf-t
end if
dxdt=(1-x)/tao
x=X+dxdt*h
t=t-h
write (*,10)