Professional Documents
Culture Documents
Test Question
Test Question
Test Question
Figure 1(a)
Algorithm
1. Inputs: a, b, P, G and X
2. Calculate RA and RB
𝑏𝑏2
𝑃𝑃(𝑎𝑎)+𝑔𝑔( )
RA = 𝑎𝑎+𝑏𝑏
2
RB = 𝑃𝑃 − 𝑅𝑅𝑅𝑅
3. Calculate moment
𝐹𝐹𝐹𝐹𝐹𝐹 𝑥𝑥 ≤ 𝑎𝑎
𝑀𝑀𝑀𝑀 = 𝑅𝑅𝑅𝑅(𝑥𝑥)
𝐹𝐹𝐹𝐹𝐹𝐹 𝑥𝑥 > 𝑎𝑎
𝑥𝑥−𝑎𝑎
𝑀𝑀𝑀𝑀 = 𝑅𝑅𝑅𝑅(𝑥𝑥) − 𝐺𝐺(𝑥𝑥 − 𝑎𝑎)( 2
)
Figure 1(b)
Figure 1(c)
Q2: Figure Q2(a) below shows a determinate overhang beam. One (1) unit of moving load is
applied to the beam as shown in the figure, where x is the distance from support A to
the load.
x 1
A B
L1 L2
Figure 2(a)
a) Construct a MATLAB program to calculate the reactions at A and B due to the moving
unit load (i.e. the influence lines). The reactions of A and B when the load is at any
point x are calculated based on the formulae below.
𝑥𝑥
Reac�on at A (Ay) = 1− 𝐿𝐿1
(Eqn. 1)
𝑥𝑥
Reac�on at B (By) = 𝐿𝐿1
(Eqn. 2)
The output of the program is shown in Figure Q2(b). The program must include the
facili�es below:
Figure 2(b)