Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
Quardratic equation solve
euler-cromer
Title
Exercise
Title
Check identity matrix or not?
euler-cromer
Factorial problem
Summation of 1 to 100 integer namber
নাজমুন নাহার
Please log in to post a comment.