You are on page 1of 2

program

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

yy*euler (dt, ti, tf, xi)


write (*,*)"

"

write (*,*)"_____________ "


write (*,20)" la solucion es : , "yy
20 format (f10.49)
pause
stop " ya compilo ..."
end program modular_eu
function euler8dt.ti,tf,xi)
implicit none

real (kind=8)

::euler, dt, ti,tf,xi,dxdt,t,x,h,tao

tao=1.0

!m/s2

t=ti
x=xi

h=dt

write (*,*) "______________"


write (*,*)

"tiempo x dxdt"

write (*,*) "______________"

do

if (t+h)tf) then
h=tf-t

end if

dxdt=(1-x)/tao
x=X+dxdt*h
t=t-h

write (*,10)

You might also like