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.001_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
Summation of 1 to 100 integer namber
Practice secant
Blasius Euler Code
Fortran!
A_04 GUASSIAN QUADRATURE METHOD FOR 3(I) AND 3(II)
4(ii)
evaluation
A1_Q1_Harsh
Sffgg
spl