Professional Documents
Culture Documents
Introduction .......................................................................................................................................... 2
Solving Equations of One Variable.................................................................................................... 3
Introduction ...................................................................................................................................... 3
.......................................................................................................................................................... 3
Translation ........................................................................................................................................ 3
Methodology ..................................................................................................................................... 4
Results & Discussion ........................................................................................................................ 4
Systems of Linear Equations .............................................................................................................. 5
Introduction ...................................................................................................................................... 5
Translation ........................................................................................................................................ 5
Methodology ..................................................................................................................................... 6
Results & Discussion ........................................................................................................................ 6
Probability ........................................................................................................................................... 7
Introduction ...................................................................................................................................... 7
Translation ........................................................................................................................................ 7
Methodology ..................................................................................................................................... 7
Results & Discussion ........................................................................................................................ 7
Appendix – Solving Equations of One Variable ................................................................................... 8
Appendix A....................................................................................................................................... 8
Appendix – Systems of Linear Equations ............................................................................................. 9
Appendix A....................................................................................................................................... 9
Appendix B ..................................................................................................................................... 10
Appendix – Probability ....................................................................................................................... 12
Introduction
All the questions respond to the following scenario: A truss bridge spans a narrow ravine and
allows traffic including heavy vehicles to access the hilltop town of Hilltown.
An underground waste water pipeline must cross the ravine, and this has been accomplished
using a trough slung underneath the bridge. In the worst possible combination of events, the
weight of the trough at capacity combined with the weight of vehicles crossing the bridge
may put some serious loads on the bridge truss elements, and cause catastrophe.
Introduction
The trough under the bridge, consists of an open half cylinder, as shown in figure 2. The total
mass of the water in the trough at any given time is given by the expression, shown in
Equation 1. The aim of the problem is to solve the equation, which determines the height of
the water from the top of the trough, given m [kg], r [m] and L [m].
Figure 2: The trough that lies under the truss bridge. (Assignment 1)
Translation
Equation 1 is used to determine the value of h [m]. It is evident that equation 1 is a non-linear
equation and can be solved using numerous numerical methods e.g. Bisection method,
Regula Falsi method etc. The solution to this problem is found by using the secant method.
The first step is to re-arrange the equation such that it equals zero (Equation 2).
The secant method uses an approximation to the first derivative of the function and therefore
The algorithm (Equation 3) needs two starting values to begin the iteration process. These
need not bracket the true root and, provided they are fairly close to it. The initial values
chosen for h [m] is 0 [m] and 50 [m]. The selected starting values were chosen such that it
satisfies the Bolzano theorem (f(xl)* f(xu)<0). A convergence test was also placed in the
code with the tolerance value of ep = 0.001. This would allow the root to be very accurate.
The value for h [m] when m = 50000 [kg], r = 1 [m] and L = 1 [m] is 1.714 [m] (3.d.p). The
secant method was solved on MATLAB and the script is provided in Appendix A. The
tolerance value that was used for the convergence test is ep = 0.001. The root displayed is
wrong as h is required to be between 0 and 1, where h < r, but in this case h>r which means
0.008030999658258i’ which holds an imaginary component to it. I’m not sure how to fix this
Introduction
The Hilltown truss bridge has a trough (Problem 1), suspended below the truss bridge by five
supports. A schematic of the forces experienced by each truss joint is contained in Figure 4.
The self-weight of the bridge and weight of the empty trough are neglected.
This problem requires to find the force in each truss element of the bridge f1−19 and the
support reactions F1, F2 and F3 simultaneously, when given the 5 forces R1, R2, R3, R4, R5.
The sum of the reaction forces is equal to when the trough holds 50,000 Kg of water.
It is assumed that all truss joints are pins, the left support is fixed, and the right support is free
to move horizontally.
Figure 4: Schematic of the truss with forces and joints annotated (Assignment 1)
Translation
Using the schematic of the truss (figure 4), the horizontal and vertical forces of each of the
joints was derived. From this, each equation was put in to a large matrix as shown in
Appendix A. The first matrix shows all the forces, the second matrix shows the amount of
force applied to a particular joint and the third matrix shows all of the reactions.
Methodology
The method used to find each of the forces in the joints when given, is Gaussian Elimination.
The MATLAB script is provided in Appendix B. The script first prompts the user to provide
the reaction forces from 1 to 5. After the user has entered values in Kilo-Newtons, the matrix
‘Q’ sends the matrix, with the reaction forces inputted, to ‘Gauss_Elim’ to solve for the
forces. The output is each of the forces, when the reaction forces is given.
Figure 5: The forces in each joint, when reaction forces are given.
The following results, figure 5 & 6, show the forces in each joint when the reaction is given.
Probability
Introduction
Translation
Methodology
function fh = ffh(h)
fh = (50000/997*50)-(0.5*pi)+(asin(h))+(h *(1 - h.^2 ).^1/2);
end
Appendix – Systems of Linear Equations
Appendix A
Appendix B
% Q2 Systems of Linear Equations
% The below code will provide the magnitude of the forces in the
% truss element of the bridge (f1 - f19) and the support reactions
% (F1, F2, F3), when given the 5 Reaction Forces (R1, R2, R3, R4, R5).
%Requesting the reaction forces.
prompt = 'What is the Reaction Force of R1?(Respond in kN)--> ';
R1 = input(prompt)