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 t=0.0_DP write(*,*)t,x,v h=0.05_DP a=-x do i=1,20 v=v+a*h x=x+v*h a=-x t=t+h write(*,*)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
55
trapezna for
Sum of series
Jánošík 2018
problem_4
DO END DO
Fyyh
G p
Blasius Euler Code
Matrix problem