summaryrefslogtreecommitdiff
path: root/3131/CH4/EX4.1/4_1.sce
blob: 7eb15418ea760f558bcc8a162c17a20e37df9d99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clear all; clc;
disp("Ex 4_1")
p1=30
p=p1*%pi/180
q1=45
q=q1*%pi/180
//The multiplicand indicates the amount of force and the multiplier indicates the distance from the point "O" in all the figures
a=100*2//Refer figure 4-4a
printf('\n\nM_O = %.0f Nm clockwise',a)
b=50*0.75//Refer figure 4-4b
printf('\n\nM_O = %.1f Nm clockwise',b)
c=40*(4+2*cos(p))//Refer figure 4-4c
printf('\n\nM_O = %0.0f Nm clockwise',c)
d=60*1*sin(q)//Refer figure 4-4d
printf('\n\nM_O = %0.1f Nm anti-clockwise',d)
e1=7000*(4-1)//Refer figure 4-4e
e=e1/1000
printf('\n\nM_O = %0.1f kNm anti-clockwise',e)