summaryrefslogtreecommitdiff
path: root/3204/CH2/EX2.19/Ex2_19.sce
blob: a27f572d4aee87bc6c38f9f021a29f8120d62da3 (plain)
1
2
3
4
5
6
7
8
9
10
11
//Initilization of variables
P=50 //N
Q=100 //N
alpha=30 //degree //angle made by Rq with +ve Y-axis
//Calculations
theta=atand((P*cotd(alpha)-Q*tand(alpha))/(P+Q)) //degree
T=Q/(cosd(theta)*cotd(alpha)-sind(theta)) //N
//Results
clc
printf('The tension in the string is %f N \n',T)
printf('The angle wich the string makes with the horizontal when the system is in equilibrium is %f N \n',theta)