You are on page 1of 7

ERROR ANALYSIS IN QUADRAT ROOT SEARCHING FROM A

NATION USING MATLAB METHOD


1
FEBYANA NUR IWAN
1
Departemen Tenik Geofisika, Fakultas Teknik Sipil Lingkungan dan Kebumian
Institut Teknologi Sepuluh Nopember (ITS)

ABSTRACT
From many mathematic functions we know one of them which is roots square. In this
experiment we must search roots square values that are not commonly squared are 0,2.10,
-4 using the average method with an error minimum limit of 0,0001 using Matlab. In
MATLAB, we used computing is a repetition function to determine where the square root
reaches a condition. the repetition process will be stopped, If it already reached this
condition. From the repetition process, we get the square root of inf, 1.4142, 3.1623 and
0 + 2i is obtained.
Keywords : Roots Square, Looping, Repetition

1. INTRODUCTION (the product of times with the number


Mathematics, which is one tool in itself) is equal to x.Every positive number x
solving a phenomenon, is usually a has two root square one of them is √𝑥 this
formula. This means that a phenomenon positive value. While others is −√𝑥 which
can be resolved if it has been formulated is negative valuable
into the language of mathematics.More
specifically, every positive number m has The two square roots are denoted by +√𝑥.
two valued square roots that are positive Root square of negative numbers discussed
and that are negative. At the square root of in the framework of studies of complex
negative values will be discussed further in numbers. More generally, square roots can
the discussion of complex number studies. be viewed from the various contexts in
The root of the general square can be seen which "squaring" notations are defined
from various discussions in which the (including matrix algebra, endomorphism,
brushes are defined. In this experiment, we etc.).
must search roots square values that are not 2.2 Error
commonly squared are 0,2.10, -4 using the
average method with an error minimum There are three main sources of errors in a
limit of 0,0001. numerical calculation, namely: inherent
errors, cutting errors, and rounding errors.
2. MATERIAL
2.2.1 Inherent Error
2.1 Roots Square
An inherent error is an error in data values,
In mathematics, the number x is equal to a caused by uncertainty in measurement. the
number such that r2 = x the number squared need for an approach to declare a number
whose numbers cannot be accurately 0,2.10, -4 using the average method with an
expressed by the number of numbers error minimum limit of 0,0001. After
available. experiment we use largest number of
examples of the values tested were 10 (x (1)
2.2.3 Cutting error
= 10). The first value tested is 0. In
Cutting error is an error that occurs because searching for the value square of 0, we
only the first few terms are calculated. An repetition is 110 times with the square root
error occurred because it did not do the value generated with error 0,0001 is infinite
calculation according to the correct and in the Command Window that reads is
mathematical procedure. written inf. The appearance of an infinite
result value is because in the formula
2.2.3 Rounding Error function there is an error in the distribution
Errors that occur because they are not taken of square roots (t1), which means divided
into account, the last few digits of a by 0 (square of 0 is 0).
number. This error occurs when For the second script the value source
approximate numbers are used to replace is square root 2 with repetition of 110 times.
the exact number. In MATLAB, there is a pause in the 6th
3. METODOLOGY repetition. In this script the value of t1 is
equal to the value of x, and square root 2 is
3.1 Tools 1.4142. Repetition in this second script
The tool that will be used in this stops because the resulting error value is
experimental calculation is MATLAB smaller than 10-4 which results from an
computing application software. error of 2.4345 x 10-08.

3.2 Flow Chart In the third script the specified value


Steps through the MATLAB software will be squared is 10. In this script there is
will be described in the following flow a pause like the previous script, which is in
chart. the 4th repetition because the error value is
5.6277 x 10-05. And the square root
obtained from 10 is 3.1623
On the fourth script, the value of the
square root that will be calculated is -4. In
this script there is also a pause in the 6th
repetition is 6.60195 X 10-6. We can see
that the square rooted value is -4 where -4
including the irrational number will be an
imaginary number with the formula (a + bi)
with i is the imaginary coefficient. In this
script the square root produced is equal to 0
+ 2i.

4. RESULT AND ANALYSIS 5. CONCLUSION


From experiment determination, search
In this experiment, we must found root
root values with the average method using
values that are not commonly squared are
MATLAB in the values root roosts of 0 ,3,-
4,10 is 0,1.4142, 3.1623 and 0 + 2i. in the
BIBLIOGRAPHY
values root roots of 0 has an infinite error In
the value 2 stoped in 6th. Looping stoped in Sutabri, Tata S.Kom., MM 2004
value 2.4345 x 10-08. And the value of 10 Pemrograman Terstruktur, Yogyakarta
pause, the 4th repetition occurs with an
file:///C:/Users/user/Pctures/118068-ID-
error value of 5.6277 x 10-05 while the
implementasi-algoritma-pencarian-akar-
value of -4 pause occurs in the 6th
ku.pdf /7/03/2019/21:00 WIB
repetition with an error value of 6.0195 x
10-06. We can see that the square rooted https://www.ijmsi.org/Papers/Volume.2.Is
value is -4 where -4 including the irrational sue.9/F029024031.pdf/7/03/2019/18:00
number will be an imaginary number with WIB
the formula (a + bi) with i is the imaginary
coefficient. In this script the square root
produced is equal to 0 + 2i.
Appendix
The Srcipt that we used on MATLAB:

%FEBYANA NUR IWAN


%03411740000008 clear all
%KOMGE B clc
clear all
clc m=10
t=sqrt(m)
m=0 n=1
t1=sqrt(m) x1(1)=10
n=1 while n <= 100
x(1)=10 x1(n+1)=0.5.*(x1(n)+(m./x1(n)))
while n <= 110 error=abs((x1(n+1)-t)./t)
x(n+1)=0.5.*(x(n)+(m./x(n))) if error<=0.0001
error=abs((x(n+1)-t1)./t1) break
if error<=0.0001 else
break n= n+1;
else end
n= n+1; end
end
end
clear all
clc
clear all
clc m=-4
t=sqrt(m)
m=2 n=1
t=sqrt(m) x1(1)=10+10i
n=1 while n <= 100
x1(1)=10 x1(n+1)=0.5.*(x1(n)+(m./x1(n)))
while n <= 100 error=abs((x1(n+1)-t)./t)
x1(n+1)=0.5.*(x1(n)+(m./x1(n))) if error<=0.0001
error=abs((x1(n+1)-t)./t) break
if error<=0.0001 else
break n= n+1;
else end
n= n+1; end
end
Figure 1. First Trial

Figure 2. Second Trial


Figure 3. Third trial

Figure 4. Fourth Trial

You might also like