blob: 521430bffc49e52d9fe138cfe11bffb42ded8c21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clear
//
//F force
//hd horizontal distance
//vd vertical distance
//O angle
//M moment of force
//Taking clockwise moment as positive
//calculations
F=5000.0
o=37
M=8000.0
hd=M/(F*cos(o*3.14/180))
printf("\n %s %.2f %s" ,"\n \n Distance = %0.3f ",hd,"m")
|