summaryrefslogtreecommitdiff
path: root/3862/CH1/EX1.4/Ex1_4.sce
blob: f5f561d0ba8a40009700598e5df630b35b7f10e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
clear
//Let the magnitude of the smaller force be F. Hence the magnitude of the larger force is 2F

//
//variable declaration
R1=260            //resultant of two forces,N
R2=(180)          //resultant of two forces if larger force is reversed,N



//calculations

F=sqrt(((R1**2)+(R2**2))/10)
F1=F
F2=2*F
theta=acos(((R1**2)-(F1**2)-(F2**2))/(2*F1*F2))*180/%pi 

printf("\n F1= %0.3f  N",F1)
printf("\n F2= %0.3f  N",F2)
printf("\n theta= %0.1f  °",theta)