Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
NEWTON SECOND LAW
!TOPIC: APPLICATION OF NEWTON SECOND LAW IN FORTRAN PROGRAMMING !AIM: TO CALCULATE THE TIME AND DISPLACEMENT OF AN OBJECT WHEN IT IS UNDER THE INFLUENCE OF GRAVITATIONAL FORCE "G". program gravitationalDisp !this program calculates vertical motion under gravity implicit none !gravitational acceleration real, parameter :: g = 9.81 !variable declaration real :: s! displacement real :: t! time real :: u!initial speed !assigning values t = 5.0 u = 79 !displacement s = u*t-g*(t**2)/2 !output print*, 'Displacement = ', s end program gravitationalDisp
run
|
edit
|
history
|
help
0
IF GO TO
Factorial num
Gauss forward elimination
Shooting
fortran-genetic-algo
A_02 GUASSIAN_ELIMINATION METHOD
exercise
Q5
underoverflow
euler-cromer