blob: 00e14d563736066c686283132b3e6a8d3eb9ce96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
F=800 // N , given force
theta=145 // Degrees , angle with posiyive X axis
theta=theta*%pi/180;// Conversion into radian
Fx=F*sin(theta);//N, Horizontal component
Fy=F*cos(theta);// N, Vertical Component
printf("Horizontal component of F is %.2f N\n",Fx);
printf("Vertial component of F is %.2f N\n",Fy);
printf("We may write F as \n F = %.2f i + %.2f j",Fx,Fy);
|