Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
euler-cromer
!gfortran, gcc version 5.4.0 20160609 program euler_cromer implicit none integer, parameter :: DP=8 real(DP) :: x, v, h, a,t integer :: i, j x=1.0_DP v=-1.0_DP i=1 t=0.0_DP write(*,*)i,t,x,v h=0.05_DP a=-x do i=1,700 v=v+a*h x=x+v*h a=-x t=t+h write(*,*)i,t,x,v ! if(i.eq.5) then ! v=-v ! write(*,*)'velocity reversed' ! write(*,*)t,x,v ! end if end do end program
run
|
edit
|
history
|
help
0
DO WHILE DO
4(ii)
A_002 THE GUASS SEIDEL
5
problem_4
s
Fib series
Yegon Japheth tries out Fortran,
gghhhhh
fucugigugug