blob: bbb9837f14f31a73ccbd460db4039372fd700ec9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//Initilization of variables
W=1000 //N
Lab=1 //m
Lac=0.6 //m
theta=60 //degree //angle made by the beam with the horizontal
//Calculations
Q=(W*Lac*cosd(theta))/(Lab*cosd(theta)) //N // from eq'n 2
P=W-Q //N // from eq'n 1
//Results
clc
printf('The load taken by man P is %f N \n',P)
printf('The load taken by man Q is %f N \n',Q)
|