blob: 2425806d8b682fffe838e9541b35ce94aa56ae99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//Inilitization of variables
Lab=12 //m
Mc=40 //kN-m
Md=10 //kN-m
Me=20 //kN-m
Fe=20 //kN //force acting at point E
//Calculations
Xa=-(Fe) //kN //take sum Fx=0
Rb=(Md+Me-Mc)/Lab //N //take moment at A
Ya=-Rb //N //take sum Fy=0
//Results
clc
printf('The vertical reaction (upwards) at A is %f kN \n',Ya)
printf('The horizontal reaction (towards A) is %f kN \n',Xa)
printf('The reaction (downwards) at B is %f kN \n',Rb)
|