summaryrefslogtreecommitdiff
path: root/3204/CH2/EX2.1/Ex_2_1.sce
blob: 49e1e44ef21c79a4db49091eef5794fec1390c14 (plain)
1
2
3
4
5
6
7
8
9
10
11
//Initilization of variables
P=50 //N
Q=100 //N
beta=150 //degree // angle between P & the horizontal
//Calculations
R=sqrt(P^2+Q^2-(2*P*Q*cosd(beta))) // using the Trignometric solution
Alpha=asind((sind(beta)*Q)/R)+15
//Result
clc
printf('The magnitude of resultant is %f Newton (N) \n',R)
printf('The direction of resultant is %f degree \n',Alpha)