Mamatay Na Ako
Mamatay Na Ako
OBJECTIVE:
EQUIPMENT:
a. Reference books
b. Personal computer
PROCEDURES:
a. Choose your partner for this laboratory work. Your instructor will assign a
specific field/topic in civil engineering. Select one civil engineering problem
within the assigned topic that is solved using system of linear equations with
minimum of four equations (no repetition of problems).
b. Explain the concepts, theories, and/or laws involved in the problem and how
did you come up with the equations.
c. Solve the unknown values using one of the four numerical methods in solving
system of linear equations.
d. To verify your answers, solve the unknown values using MATLAB.
RESULTS: (use the format below)
(DISCIPLINE/BRANCH OF CE)
Problem:
T.H.G. Megson - Structural and Stress Analysis-Elsevier Butterworth-
Heinemann (2005).pdf
The provided code uses Cramer's Rule to solve a system of linear equations
represented by the coefficient matrix AAA and constants vector BBB. It calculates
the determinant of AAA to ensure it's non-zero and iteratively replaces each column
of AAA with BBB to compute the solution for each variable. The results, labeled
EIA,EIB,EIC,EIA, EIB, EIC,EIA,EIB,EIC, and EIDEIDEID, reveal insights into the
system's behavior. While effective for small systems, Cramer's Rule can be less
efficient for larger ones, where methods like Gaussian elimination may be
preferable.
=0.75⋅(8⋅(8⋅4−2⋅0))=0.75⋅256=192
∣AEIB∣=4⋅(−0.5⋅(8⋅4−2⋅0)+2⋅(0.25⋅4−1.0⋅2))=4⋅(−16+1)=4⋅−15=−60
∣AEIC∣=4⋅(8⋅(0.25⋅4)−(−0.5⋅2))=4⋅(8⋅1+1)=36
AEID∣=4⋅(8⋅0.25−2⋅2)=4⋅(2−4)=−8
CONCLUSION:
The Gauss-Jordan elimination method was effectively applied to solve the system of
linear equations involving the variables EIA,EIB,EIC,EIA, EIB, EIC,EIA,EIB,EIC, and
EIDEIDEID. This approach transformed the augmented matrix into reduced row
echelon form, enabling a clear extraction of unique values for each variable. The
negative values for EIA,EIB,EIA, EIB,EIA,EIB, and EICEICEIC indicate a deficit,
while the positive value for EIDEIDEID suggests a surplus, reflecting the
interconnected relationships among these parameters.
The sensitivity of the system to changes in coefficients is noteworthy, as even small
variations could lead to significant shifts in the results. This highlights the importance
of precision in modeling and the potential impacts on decision-making in practical
applications.
R1=[1,0.5,0,0∣0.1875], R2=[0,7,2,0∣−0.875]
R3= NO CHANGE, R4= NO CHANGE
CONCLUSION:
Discussion:
The results from the Gaussian elimination with partial pivoting reveal that the system
of equations, representing relationships among variables EIA,EIB,EIC,EIA, EIB,
EIC,EIA,EIB,EIC, and EIDEIDEID, has a unique solution. The negative values of
EIA,EIB,EIA, EIB,EIA,EIB, and EICEICEIC suggest a decrease or deficit in the
parameters they represent, while the positive value of EIDEIDEID indicates a
surplus. This indicates a consistent relationship among the equations, allowing for
clear insights into the behavior of the system.
Moreover, the relatively small values obtained imply that the system may be
sensitive to changes in the coefficients or constants, suggesting that slight variations
could lead to significantly different outcomes. Overall, the successful application of
Gaussian elimination demonstrates the method's effectiveness in solving linear
equations, highlighting its importance in various mathematical and real-world
applications.
ANSWER:
EIA≈−0.1833
EIB≈−0.0083EIB \approx -0.0083EIB≈−0.0083
EIC≈−0.0333EIC \approx -0.0333EIC≈−0.0333
EID≈0.2667EID \approx 0.2667EID≈0.2667
MATLAB Calculations:
Method Used: GAUSS ELIMINATION WITH POVITING
CONCLUSION:
The application of Gaussian elimination with partial pivoting successfully solved the
system of linear equations. The calculated values for EIAEIAEIA, EIBEIBEIB,
EICEICEIC, and EIDEIDEID provide insights into the relationships among the
variables involved.
This method is efficient for solving such systems, ensuring numerical stability
through partial pivoting. It demonstrates that linear algebra techniques can
effectively yield solutions in real-world problems, where such equations often arise.
In future applications, it may be beneficial to analyze how variations in the
coefficients affect the solutions, potentially employing sensitivity analysis or
optimization techniques. This could enhance the understanding of the underlying
system and inform better decision-making based on the results.
Overall, the successful implementation of the Gaussian elimination method
underscores its importance in mathematical modeling and computational
applications.
Discussion:
In the given case, we started with a set of four equations involving four unknowns:
EIA,EIB,EIC,EIA, EIB, EIC,EIA,EIB,EIC, and EIDEIDEID. Each equation was formulated
to describe a specific relationship among these variables, which could arise in scenarios
such as electrical circuit analysis or structural engineering. The equations were represented
in matrix form, which is not only compact but also facilitates the application of linear
algebra techniques.
4EIA+2EIB+0EIC+0EID=0.75
2EIA+8EIB+2EIC+0EID=−0.52EIA + 8EIB + 2EIC + 0EID = -
0.52EIA+8EIB+2EIC+0EID=−0.5
0EIA+2EIB+8EIC+2EID=0.250EIA + 2EIB + 8EIC + 2EID =
0.250EIA+2EIB+8EIC+2EID=0.25
0EIA+0EIB+0EIC+4EID=1.00EIA + 0EIB + 0EIC + 4EID =
1.00EIA+0EIB+0EIC+4EID=1.0
R1:4EIA+2EIB+0EIC+0EID=0.75
R2:0+7EIB+2EIC+0EID=−1.125
R3:0EIA+2EIB+8EIC+2EID=0.25
R4:0EIA+0EIB+0EIC+4EID=1.0
EIA=−0.1833EIA = -0.1833EIA=−0.1833
EIB=−0.0083EIB = -0.0083EIB=−0.0083
EIC=−0.0333EIC = -0.0333EIC=−0.0333
EID=0.2667EID = 0.2667EID=0.2667
MATLAB Calculations:
Method Used: GAUSS ELIMINATION
CONCLUSION:
Overall, Gaussian elimination is a robust technique for solving linear systems. Its application
in this context underscores its importance as a foundational tool in both theoretical and
practical aspects of linear algebra. The method’s ability to provide clear, actionable results
makes it indispensable for researchers and practitioners alike. The discussion surrounding
the implementation also emphasizes the significance of numerical stability and precision in
computational algorithms, which are critical for obtaining reliable solutions in real-world
problems.