blob: aa00cb0a13ad95485c8a28afb864e64a8c671bd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
clear
//Let //ABC be the triangle of forces drawn to some scale
//Two forces F1 and F2 are acting at point A
//angle in degrees '°'
//
//variabble declaration
cnv=%pi/180
BAC = 20*cnv //Resultant R makes angle with F1
ABC = 130*cnv
ACB = 30*cnv
R = 500 //resultant force,N
//calculations
//sinerule
F1=R*sin(ACB)/sin(ABC)
F2=R*sin(BAC)/sin(ABC)
printf("\n F1= %0.2f N",F1)
printf("\n F2= %0.2f N",F2)
|