You are on page 1of 5

Calculate the volume of materials hauled by engineers to make

construction materials using linear equations with MathLab


Mohamad Setyo Ari N
03411740000026
Sepuluh Nopember Institute of Technology

ABSTRACT

In everyday life several solutions to problems are needed with mathematical equations. Most
are depicted in mathematical equations that have variables. And from these variables, it can
be seen how many minimum requirements must be met. for example, in the following case
that calculates how much sand the engineer must take when he needs sand 4800m3, fine
gravel 5800 m3, and 5700 m3 coarse gravel. And with the known pit data, it can be known
with the help of the gauss-jordan elimination so that x, y, z can be known. and it is obtained
much as 33 m3 sand volume, fine gravel 63.4651 m3 and coarse gravel 65.5581 m3 each pit.
Keywords: Gauss-jordan method, Linear Equation, Volume pit

I. INTRODUCTION Gauss-Jordan elimination method we


create zero elements below or above the
A numerical method is a technique in main diagonal of a matrix. The result is a
which mathematical problems are reduced matrix in the form of a unit
formulated so that they can be solved by diagonal matrix (all elements in the main
arithmetic operations. So, the numerical diagonal are 1, the other elements are
method is a technique for formulating zero).
mathematical problems so that it can be
solved by arithmetic operations consisting The Gauss-Jordan elimination method
of operations added, less, times and for. is less efficient at completing an SPL but
Based on the above background the author is more efficient than Gauss elimination if
is interested in doing the completion we want to resolve SPL with the same
method, namely the method of Gauss coefficient matrix. The Method is named
Jordan Elimination after the Gauss-Jordan Elimination in
honor of Carl Friedrich Gauss and
II. LITERATURE REVIEW Whilhelm Jordan.
2.1 Linear Equation System 2.2 Gauss-Jordan elimination
In mathematics, a system of linear One method that can be used to solve
equations is a collection of linear the system of linear equations is the
equations that have the same variables. method of Gauss-Jordan elimination. This
The general form of a system of linear method is named Gauss-Jordan in honor of
equations with n variables. In linear CarlFriedrich Gauss and Wilhelm Jordan.
algebra, Gauss-Jordan elimination is a This method is a modification of the Gauss
version of Gauss elimination. In the
elimination method, which was described III. METODOLOGY
by Jordan in 1887.
This Gauss-Jordan method produces a
matrix with reduced echelon form
(reduced row echelon form), while Gauss
elimination only produces a matrix until
the echelon form line (row echelon form).
In addition to completing the system of
linear equations, this method of Gauss-
Jordan elimination can. Gauss Elimination
Method: a method developed from the
elimination method, which eliminates or
reduces the number of variables so that the
value of a variable that is free can be
obtained.
The Gauss-Jordan elimination is the
development of Gauss elimination which
results are even simpler. The trick is to
continue line operations from Gauss
elimination to produce an echelon-row
matrix. This can also be used as one
method of solving linear equations using a
matrix.
IV. RESULT AND DISSCUSION
This method is used to find the inverse
of a matrix. The general procedure for the A civil engineer involved in construction
Gauss-Jordan elimination method is to requires 4800, 5800, and 5700 m3 of sand,
change the system of linear equations that fine gravel, and coarse gravel,
want to be calculated as an augmentation respectively, for a building project. There
matrix. Perform elementary row are three pits from which these materials
operations in the augmentation matrix (A | can be obtained. The composition of these
b) to change the A matrix to be in the form pits is
of a reduced echelon line.
2.3 Strengths and Benefits:
Change the system of linear equations that
want to be calculated as an augmentation
matrix. is a variation of gauss elimination
with the need to be able to solve inverse
matrices.
The problem above is changed to the volume as sand 33 m3, fine gravel 63.4651
following equation: m3 and coarse gravel 65.5581 m3 each pit.
52x + 30y + 18z = 4800 References
20x + 50y + 30z = 5800 Chapra, S.C, Applied Numerical Methods
with Matlab,2nd ed, McGraw-Hill, New
25x + 20y + 55z = 5700 York, 2008
He was given the problem where https://www.mathplanet.com/education/al
the engineer wanted to make construction, gebra-1/how-to-solve-linear-equations
and he needed as many types of sand as the
problem. Meanwhile, know the pit data of http://www.mathwords.com/g/gauss-
each type of sand according to the table jordan_elimination.htm
above. and how much trouble he has to
take from each pit to his needs. https://math.tutorvista.com/algebra/gauss-
jordan-method.html
For this reason we use the equation
as above. by knowing the magnitude of x https://www.mathsisfun.com/algebra/line
y and z means that we know the size of the ar-equations.html
sand reserves in the pit 1 pit 2 pit 3. after
knowing how much the sand content is
after each pit, it can be seen how much
each pit must transport to meet its
construction needs.
By using the for function in matlab
it can be determined how many x, y, z
values are from each pit. And the gauss
elimination is used to find out the results
and then use the gauss-jordan method so
that the results of x, y, z are determined.
After that, get the x result for 33 m3
then y equal to 63.4651 m3 and z equal to
65.5581 m3. The results are used as a
reference for how much reserve is needed.
so, the engineer must take according to the
value of x, y, z because it fulfills the initial
sand requirement
V. CONCLUSION
From the demand for sand 4800 m3, fine
gravel 5800m3 then coarse gravel 5700m3
then the engineer must get as much
Appendix:
clear all
clc

% 52x +30y +18z =4800


% 20x +50y +30z =5800
% 25x +20y +55z =5700

A = [52 30 18 4800;20 50 30 5800;25 20 55 5700];

%ELIMINASI GAUSS [m,n)=size(A);


[m,n]=size(A);
for j=1:m-1
for z=2:m
if A(j,j)==0
t=A(j,:);A(j,:)=A(z,:);
A(z,:)=t;
end
end
for i=j+1:m
A(i,:)=A(i,:)-A(j,:)*(A(i,j)/A(j,j));
end
end

x=zeros(1,m);
for s=m:-1:1
c=0;
for k=2:m
c=c+A(s,k)*x(k);
end
x(s)= (A(s,n)-c)/A(s,s);
end
disp('Gauss elimination method:');
A
x'

% METODE GAUSS-JORDAN
[m,n]=size(A);
for j=1:m-1
for z=2:m
if A(j,j)==0
t=A(1,:);A(1,:)=A(z,:);
A(z,:)=t;
end
end
for i=j+1:m
A(i,:)=A(i,:)-A(j,:)*(A(i,j)/A(j,j));
end
end
for j=m:-1:2
for i=j-1:-1:1
A(i,:)=A(i,:)-A(j,:)*(A(i,j)/A(j,j));
end
end

for s=1:m
A(s,:)=A(s,:)/A(s,s);
x(s)=A(s,n);
end
disp('Gauss-Jordan method:');
A
x'

Hasil

Gauss elimination method:

A =

1.0e+03 *

0.0520 0.0300 0.0180 4.8000


0 0.0385 0.0231 3.9538
0 0 0.0430 2.8190

ans =

33.0000
63.4651
65.5581

Gauss-Jordan method:

A =

1.0000 0 0 33.0000
0 1.0000 0 63.4651
0 0 1.0000 65.5581

ans =

33.0000
63.4651
65.5581

You might also like