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
A_01 NEWTON_RM(B(II))
A_02 JACOBI METHOD
Comparison of three numbers
Regression
Rvc
Subroutine problem
A_02 questions 3
Gauss forward elimination
A_02 GUASSIAN_ELIMINATION METHOD
Exercise