blob: b24f0049e3582b92c5abb7b33da8a27db396cff4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
clear all; clc;
disp("Scilab Code Ex 1.3 :")
// Given:
l_ac = 1; //m.
l_cd = 1.5 ; //m.
l_bd = 0.5; //m.
r_a = 0.125; //m.
r_d = 0.125; //m.
W = 2000; // N
// Equations of equilibrium:
//Balancing forces in the x direction:
n_c = -W; // N
//Balncing forces in the y direction:
v_c = -W; //N
// Balncing the moments about C:
m_c = - (W*(r_a +l_ac)- W*r_a)
// Displaying results:
printf('\n\nThe horizontal force at C = %.2f N',n_c);
printf('\nThe vertical force at C = %.2f N',v_c);
printf('\nThe moment about C = %.2f Nm',m_c);
//----------------------------------------------------------------------------END--------------------------------------------------------------------------------------------
|