SlideShare una empresa de Scribd logo
1 de 40
Descargar para leer sin conexión
0101011
0000000
1110100
0110001

  1

 0


                             Finding Roots

                                 Sparisoma Viridi
                      Nuclear Physics and Biophysics Research Division
                    Institut Teknologi Bandung, Bandung 40132, Indonesia
                                       dudung@fi.itb.ac.id



      v2011.09.20                 FI3102 Computational Physics             1
0101011
0000000
1110100
0110001                   Outline
  1
      •   Function and roots
 0
      •   A simple physical problem and its solution
      •   Several methods in finding roots
      •   Graphical method
      •   Newton’s method, secant method
      •   Bisection method
      •   References

      v2011.09.20      FI3102 Computational Physics    2
0101011
0000000
1110100
0110001                    Function
  1
      • Function:
 0
           – Output: f(x)
           – Input: x (the argument)
      • The argument can be
        a real number or
        elements of a given
        set (matrix, vector, etc)
      • See reference [1]
      v2011.09.20         FI3102 Computational Physics   3
0101011
0000000
1110100
0110001                   Roots
  1
      • Argument that makes a function to
 0
        produce zero output [2, 3]
      • Argument that make two functions to
        produce same output [4]

      • Question 1. Is the second definition
        actually the same as the first one?

      v2011.09.20    FI3102 Computational Physics   4
0101011
0000000
1110100
0110001              Roots (cont.)
  1
      • Example
 0
        of roots for
        f(x) = cos (x)
        in interval
        [-2π,2π],
        see [5]


      v2011.09.20        FI3102 Computational Physics   5
0101011
0000000
1110100
0110001                Roots (cont.)
  1
      • Say that there are two functions:
 0
           – First function is f(x)
           – Second function is g(x)
      • The second definition of roots is argument
        that makes two functions produce same
        output
      • If x is a root than f(x) = g(x)


      v2011.09.20         FI3102 Computational Physics   6
0101011
0000000
1110100
0110001                 Roots (cont.)
  1
      • Or, we can introduce a new function
 0
           – The new function is h(x) = f(x) – g(x)
      • If x is a root, it makes f(x) = g(x)
      • If x is a root, it also makes h(x) = 0
      • So, both definitions are actually the same
        (Answer 1)



      v2011.09.20          FI3102 Computational Physics   7
0101011
0000000
1110100
0110001       A simple physical problem
  1
      • A ball is launched from bottom of a incline
 0
        plane as illustrated below, find where and
        when does it hit
        the plane!
                          v0                                  H (xH, yH)


                         α
                                β
                    O (0, 0)
      v2011.09.20              FI3102 Computational Physics          8
0101011
0000000
1110100
0110001Solving the problem analytically
  1
      • The ball motions in x and y direction as
 0
        function of time t are
           x(t) = v0 [cos (α + β)] t
           y(t) = v0 [sin (α + β)] t – ½ gt2
           then y(t) = y[t(x)] = y(x) will give
           y = f(x) = [tan (α + β)] x – [g / 2v02 cos2(α + β)] x2
      • The equation of incline plane is
           y = g(x) = [tan β] x

      v2011.09.20            FI3102 Computational Physics           9
0101011
0000000
1110100
0110001             The roots of the problem
  1
      • In this case we can use second definition
 0
        of roots, so
           f(x) = g(x) → x is a root
      • Or we construct a new function h(x)
           h(x) = f(x) – g(x)
                = [tan (α + β) – tan β] x – [g/2v02 cos2(α + β)] x2
      • The view of both definition in finding roots
        will be shown in the next slide
      v2011.09.20           FI3102 Computational Physics          10
0101011
0000000
1110100
0110001   Graphics of f(x), g(x), and h(x)
  1

 0                                                        h(x)
                    f(x)                root




                    g(x)




      v2011.09.20          FI3102 Computational Physics          11
0101011
0000000
1110100
0110001        Graphics of .. (cont.)
  1
      • Even both graphics show different curve,
 0
        but they give the same value of x (the root
        we want to find)
      • Parameters are:
        α = π/6, β = π/6, v0 = 5, g = 10,
        x0 = 0, y0 = 0, ∆x = 0.025
      • The root should be around x = 1.4
      • And vertical position around y = 0.85
      •
      v2011.09.20     FI3102 Computational Physics   12
0101011
0000000
1110100
0110001              Analytical solution
  1
      • Using quadratic formula we can find the
 0
        roots
      • But this case is simpler since other root
        are 0
      • Then it can found that
           x = [tan (α + β) – tan β] [2v02 cos2(α + β)] / g
             = 1.443376
           f(x) = f(1.443376) = 0.833333

      v2011.09.20           FI3102 Computational Physics      13
0101011
0000000
1110100
0110001         Analytical solution (cont.)
  1
      • Question 2. If we already know the
 0
        analytical solution, then for what is it the
        numerical solution?




      v2011.09.20       FI3102 Computational Physics   14
0101011
0000000
1110100
0110001         Analytical solution (cont.)
  1
      • Answer 2. It is for testing whether the
 0
        numerical solution has the same value as
        the analytical one
      • You can not (or should not) use your
        method or algorithm or code to some
        problem, before you test it
      • Test it for the problem that you have
        already known its solution

      v2011.09.20       FI3102 Computational Physics   15
0101011
0000000

      Several methods in finding roots
1110100
0110001

  1
      •   Graphical method
 0
      •   Newton method
      •   Secant method
      •   Einschlussverfahren method [4]: bisection,
          regula falsi, pegasus, Anderson-Björck,
          Zeroin, Illinois, King, Anderson-Björck-
          King, etc)

      v2011.09.20      FI3102 Computational Physics   16
0101011
0000000
1110100
0110001             Graphical method
  1
      • It uses graphics to find the root
 0
      • It can accommodate the first and second
        definition of the root
      • It is rather not accurate since it depends
        on our judgment to determine whether
        f(x) = g(x) or h(x) = 0
      • Some software, i.e. gnuplot, has feature to
        return the position of mouse pointer
      v2011.09.20      FI3102 Computational Physics   17
0101011
0000000
1110100
0110001         Graphical method (cont.)
  1
      • We (actually) already used this method
 0

                                                root

      analytical
       solution

      x = 1.443376
                                            graphical
      y = 0.833333                           solution
                                              x = 1.4
                                              y = 0.85



      v2011.09.20      FI3102 Computational Physics      18
0101011
0000000
1110100
0110001                Newton’s method
  1
      • Taylor’s expansion around x = a will give
 0
           f (x) ≈ f (a) + (x – a)f '(a)
        with assumption that (x – a) small enough
        to terminate next term in the series
      • By setting x = 0 (the target) we can find
        that x = a – f (a) / f ' (a)
      • Or, the iterative expression is
           xi+1 = xi – f (xi) / f '(xi)
      v2011.09.20               FI3102 Computational Physics   19
0101011
0000000
1110100
0110001             Newton method (cont.)
  1
      • Question 3. Write the iterative expression
 0
        for previous problem using Newton’s
        method [use h(x) instead of f(x) and g(x)]
        and show also the result
      • From previous problem:
         h(x) = [tan (α + β) – tan β] x – [g/2v02 cos2(α + β)] x2
         h'(x) = ?
         xi+1 = xi + ?

      v2011.09.20          FI3102 Computational Physics             20
0101011
0000000
1110100
0110001             Newton method (cont.)
  1
      • Answer 3. It can be found that
 0

                                                             g         2
                     [tan (α + β ) − tan β ]x i −                     xi 
                                                    2 v o cos (α + β )  
                                                          2     2
                    
     xi +1   = xi −                                                        
                     [tan (α + β ) − tan β ] −            g         2 
                                                  2                xi 
                                                   v o cos (α + β ) 
                                                             2
                                                                           




      v2011.09.20               FI3102 Computational Physics               21
0101011
0000000
1110100
0110001             Newton method (cont.)
  1
      • And the result is
 0
      • Only need about
        6 iterations
      • x = 1.443376
        (analytical solu-
        tion is 1.443376)
      • In a good agree-
        ment wtih a.s.
      v2011.09.20         FI3102 Computational Physics   22
0101011
0000000
1110100
0110001                   Secant method
  1
      • In Newton’s method we must know or
 0
        calculate the derivative of f(x)
      • In secant method it is calculated using
           f '(xi) ≈ [f(xi) – f(xi-1)] / (xi – xi-1)
      • And this gives the iterative expression
         xi+1 = xi – (xi – xi-1) f (xi) / [f(xi) – f(xi-1)]
         with xi and xi-1 as starting values

      v2011.09.20               FI3102 Computational Physics   23
0101011
0000000
1110100
0110001             Secant method (cont.)
  1
      • Secant method (right) is more efficient
 0
        than Newton’s method (left) as illustrated
        in [3]




      v2011.09.20        FI3102 Computational Physics   24
0101011
0000000
1110100
0110001             Secant method (cont.)
  1
      • The result is
 0
      • Only (also) need
        ~ 6 iterations
      • x = 1.443376
        (analytical solu-
        tion is 1.443376)
      • In a good agree-
        ment wtih a.s.
      v2011.09.20        FI3102 Computational Physics   25
0101011
0000000
1110100
0110001     Newton’s vs secant method
  1
           Iteration   Newton’s          Secant method   Difference
                        method
 0
              1        1.796544             1.675235     0.121309
              2        1.501396             1.383598     0.117798
              3        1.445534             1.434796     0.010738
              4        1.443379             1.443749     -0.00037
              5        1.443376             1.443373     2.23E-06
              6        1.443376             1.443376     5.76E-10
              7        1.443376             1.443376     -8.9E-16
              8        1.443376             1.443376     -2.2E-16
              9        1.443376             1.443376     4.44E-16
              10       1.443376             1.443376         0
      v2011.09.20        FI3102 Computational Physics                 26
0101011
0000000
1110100
0110001   Newton’s vs secant ... (cont.)
  1
      • For Newton’s method x0 = 1
 0
      • For secant method x0 = 1 and x1 = 1.1
      • Both methods gives similar result at about
        10 iterations (difference less than 10–16)




      v2011.09.20    FI3102 Computational Physics   27
0101011
0000000
1110100
0110001             Bisection method
  1
      • Suppose that we have a function as in [6]
 0




      v2011.09.20      FI3102 Computational Physics   28
0101011
0000000
1110100
0110001             Bisection method (cont.)
  1
                                                     • The algorithm:
 0




      v2011.09.20          FI3102 Computational Physics            29
0101011
0000000
1110100
0110001             Example: x2 – 4x + 3
  1

 0




      v2011.09.20        FI3102 Computational Physics   30
0101011
0000000
1110100
0110001       Example: x2 – 4x + 3 (cont.)
  1

 0




      v2011.09.20     FI3102 Computational Physics   31
0101011
0000000
1110100
0110001       Example: x2 – 4x + 3 (cont.)
  1
      • The roots have been found
 0
        x1 ≈ 2.999 (analytical solution is 3)
        x2 ≈ 1.001 (analytical solution is 1)

      • Further iteration (more than 10) can be
        performed to get nearer results

      • What about muliple roots? Any idea?
      v2011.09.20      FI3102 Computational Physics   32
0101011
0000000
1110100
0110001             Multiple roots
  1
      • After finding one root the original equation
 0
        must be modified

      • Question 4. Do you know how to modify
        the original equation in order to obtain
        other root?



      v2011.09.20     FI3102 Computational Physics   33
0101011
0000000
1110100
0110001             Multiple roots (cont.)
  1
      • Answer 4. Divide the original equation
 0
        with all previous found root(s) in order to
        avoid the previous root(s) to be found
        again

      • Could you write the algorithm together with
        the finding roots algorithm?


      v2011.09.20        FI3102 Computational Physics   34
0101011
0000000
1110100
0110001             Multiple roots (cont.)
  1
      • Multiple roots algorithm (1st root)
 0
           – Finding roots algorithm
      • Multiple roots algorithm (2nd root)
           – Finding roots algorithm
      • Multiple roots algorithm (3rd root)
           – Finding roots algorithm
      • .. for the nth root ..

      v2011.09.20         FI3102 Computational Physics   35
0101011
0000000
1110100
0110001              Summary
  1
      • Three different methods for finding roots
 0
        have been presented
      • A simple physical problem is used to
        illustrate the first two method
      • Other problems which need to find roots
        can also be solved using given methods
      • Algorithm to solve multiple roots problem
        has not yet been discussed (only the idea)
      v2011.09.20    FI3102 Computational Physics   36
0101011
0000000
1110100
0110001             References
  1
      1. Wikipedia contributors, “Function (mathe-
 0
         matics)”, Wikipedia, The Free
         Encyclopedia, 18 September 2011, 10:26
         UTC, oldid:451121927> [2011.09.19
         07.31+07]
      2. Paul L. DeVries, “A First Course in
         Computational Physics”, John Wiley &
         Sons, New York, First Edition, 1994, pp.
         41-85
      v2011.09.20    FI3102 Computational Physics   37
0101011
0000000
1110100
0110001             References (cont.)
  1
      3. Steven E. Koonin and Dawn C. Meredith,
 0
         “Computational Physics Fortran Version”,
         Westview, Canada, First Edition, 1990,
         pp. 11-14
      4. Gisela Engeln-Müllges, Klaus
         Niederdrenk, and Reinhard Wodicka,
         “Numerik-Algorithmen”, Springer, Berlin,
         10. Auflage, 2011, pp.25-90

      v2011.09.20       FI3102 Computational Physics   38
0101011
0000000
1110100
0110001             References (cont.)
  1
      5. Wikipedia contributors, “Zero of a
 0
         function”, Wikipedia, The Free
         Encyclopedia, 12 September 2011, 02:23
         UTC, oldid:449926806 [2011.09.19
         07.48+07]
      6. Sparisoma Viridi, “Computational
         Physics”, Version 3, 2011, pp. 49-53


      v2011.09.20       FI3102 Computational Physics   39
0101011
0000000
1110100
0110001

  1

 0

                     Thank you
                    (for your patience)




      v2011.09.20      FI3102 Computational Physics   40

Más contenido relacionado

La actualidad más candente

Emat 213 midterm 1 fall 2005
Emat 213 midterm 1 fall 2005Emat 213 midterm 1 fall 2005
Emat 213 midterm 1 fall 2005
akabaka12
 
Engr 213 midterm 2a 2009
Engr 213 midterm 2a 2009Engr 213 midterm 2a 2009
Engr 213 midterm 2a 2009
akabaka12
 
Amth250 octave matlab some solutions (2)
Amth250 octave matlab some solutions (2)Amth250 octave matlab some solutions (2)
Amth250 octave matlab some solutions (2)
asghar123456
 
Open GL 04 linealgos
Open GL 04 linealgosOpen GL 04 linealgos
Open GL 04 linealgos
Roziq Bahtiar
 

La actualidad más candente (18)

Low Complexity Regularization of Inverse Problems - Course #2 Recovery Guaran...
Low Complexity Regularization of Inverse Problems - Course #2 Recovery Guaran...Low Complexity Regularization of Inverse Problems - Course #2 Recovery Guaran...
Low Complexity Regularization of Inverse Problems - Course #2 Recovery Guaran...
 
Low Complexity Regularization of Inverse Problems
Low Complexity Regularization of Inverse ProblemsLow Complexity Regularization of Inverse Problems
Low Complexity Regularization of Inverse Problems
 
Applied numerical methods lec12
Applied numerical methods lec12Applied numerical methods lec12
Applied numerical methods lec12
 
Ch[1].2
Ch[1].2Ch[1].2
Ch[1].2
 
Ep 5512 lecture-02
Ep 5512 lecture-02Ep 5512 lecture-02
Ep 5512 lecture-02
 
Chapter 3 (maths 3)
Chapter 3 (maths 3)Chapter 3 (maths 3)
Chapter 3 (maths 3)
 
02 basics i-handout
02 basics i-handout02 basics i-handout
02 basics i-handout
 
Emat 213 midterm 1 fall 2005
Emat 213 midterm 1 fall 2005Emat 213 midterm 1 fall 2005
Emat 213 midterm 1 fall 2005
 
Engr 213 midterm 2a 2009
Engr 213 midterm 2a 2009Engr 213 midterm 2a 2009
Engr 213 midterm 2a 2009
 
Chapter 4 (maths 3)
Chapter 4 (maths 3)Chapter 4 (maths 3)
Chapter 4 (maths 3)
 
Amth250 octave matlab some solutions (2)
Amth250 octave matlab some solutions (2)Amth250 octave matlab some solutions (2)
Amth250 octave matlab some solutions (2)
 
Coincidence points for mappings under generalized contraction
Coincidence points for mappings under generalized contractionCoincidence points for mappings under generalized contraction
Coincidence points for mappings under generalized contraction
 
Lesson 27: Integration by Substitution, part II (Section 10 version)
Lesson 27: Integration by Substitution, part II (Section 10 version)Lesson 27: Integration by Substitution, part II (Section 10 version)
Lesson 27: Integration by Substitution, part II (Section 10 version)
 
Calculus of variation problems
Calculus of variation   problemsCalculus of variation   problems
Calculus of variation problems
 
Chapter 5 (maths 3)
Chapter 5 (maths 3)Chapter 5 (maths 3)
Chapter 5 (maths 3)
 
Open GL 04 linealgos
Open GL 04 linealgosOpen GL 04 linealgos
Open GL 04 linealgos
 
Lesson 27: Integration by Substitution (slides)
Lesson 27: Integration by Substitution (slides)Lesson 27: Integration by Substitution (slides)
Lesson 27: Integration by Substitution (slides)
 
Lecture 2: linear SVM in the dual
Lecture 2: linear SVM in the dualLecture 2: linear SVM in the dual
Lecture 2: linear SVM in the dual
 

Destacado

Dinamica del ambient (informatica)
Dinamica del ambient (informatica)Dinamica del ambient (informatica)
Dinamica del ambient (informatica)
J3ND3R
 
Austur-Evrópa
Austur-EvrópaAustur-Evrópa
Austur-Evrópa
georgb2789
 
экспертная комисия
экспертная комисияэкспертная комисия
экспертная комисия
MeritSirus
 
Business Ethics E Sistemi di Valutazione
Business Ethics E  Sistemi di ValutazioneBusiness Ethics E  Sistemi di Valutazione
Business Ethics E Sistemi di Valutazione
lukic83
 
Portfolio oscar ruiz
Portfolio oscar ruizPortfolio oscar ruiz
Portfolio oscar ruiz
Oscar Ruiz
 
Proyecto Educacional de Libre Mercado en Loreto
Proyecto Educacional de Libre Mercado en LoretoProyecto Educacional de Libre Mercado en Loreto
Proyecto Educacional de Libre Mercado en Loreto
Jose Luis Tapia
 
SEO & Quảng cáo Google_Nova Ads
SEO & Quảng cáo Google_Nova AdsSEO & Quảng cáo Google_Nova Ads
SEO & Quảng cáo Google_Nova Ads
Bui Hang
 
Mc perpisahan
Mc perpisahanMc perpisahan
Mc perpisahan
Eva Zen
 

Destacado (20)

Marussia - сеть русских центров по всему миру
Marussia - сеть русских центров по всему мируMarussia - сеть русских центров по всему миру
Marussia - сеть русских центров по всему миру
 
Association Affinity Programs & Non-Dues Revenue
Association Affinity Programs & Non-Dues RevenueAssociation Affinity Programs & Non-Dues Revenue
Association Affinity Programs & Non-Dues Revenue
 
Лев, обезьяна, рыба
Лев, обезьяна, рыбаЛев, обезьяна, рыба
Лев, обезьяна, рыба
 
Digi times #13 seo - set-2016 rodrigo schvabe e daniel skroski
Digi times #13   seo - set-2016 rodrigo schvabe e daniel skroskiDigi times #13   seo - set-2016 rodrigo schvabe e daniel skroski
Digi times #13 seo - set-2016 rodrigo schvabe e daniel skroski
 
Sales Day Yakhroma January 25, 2014
Sales Day Yakhroma January 25, 2014Sales Day Yakhroma January 25, 2014
Sales Day Yakhroma January 25, 2014
 
Bansi
BansiBansi
Bansi
 
Dinamica del ambient (informatica)
Dinamica del ambient (informatica)Dinamica del ambient (informatica)
Dinamica del ambient (informatica)
 
Residential Apartment Mascot Manorath.
Residential Apartment Mascot Manorath.Residential Apartment Mascot Manorath.
Residential Apartment Mascot Manorath.
 
Austur-Evrópa
Austur-EvrópaAustur-Evrópa
Austur-Evrópa
 
Photo project
Photo projectPhoto project
Photo project
 
экспертная комисия
экспертная комисияэкспертная комисия
экспертная комисия
 
Business Ethics E Sistemi di Valutazione
Business Ethics E  Sistemi di ValutazioneBusiness Ethics E  Sistemi di Valutazione
Business Ethics E Sistemi di Valutazione
 
Portfolio oscar ruiz
Portfolio oscar ruizPortfolio oscar ruiz
Portfolio oscar ruiz
 
E2D3 ver. 0.2 API説明書
E2D3 ver. 0.2 API説明書E2D3 ver. 0.2 API説明書
E2D3 ver. 0.2 API説明書
 
Proyecto Educacional de Libre Mercado en Loreto
Proyecto Educacional de Libre Mercado en LoretoProyecto Educacional de Libre Mercado en Loreto
Proyecto Educacional de Libre Mercado en Loreto
 
Lcda. curriculum
Lcda. curriculumLcda. curriculum
Lcda. curriculum
 
SEO & Quảng cáo Google_Nova Ads
SEO & Quảng cáo Google_Nova AdsSEO & Quảng cáo Google_Nova Ads
SEO & Quảng cáo Google_Nova Ads
 
Mc perpisahan
Mc perpisahanMc perpisahan
Mc perpisahan
 
Presentation1
Presentation1Presentation1
Presentation1
 
Opdracht 10 ict
Opdracht 10 ictOpdracht 10 ict
Opdracht 10 ict
 

Similar a 03 finding roots

Amth250 octave matlab some solutions (1)
Amth250 octave matlab some solutions (1)Amth250 octave matlab some solutions (1)
Amth250 octave matlab some solutions (1)
asghar123456
 
Week 7 [compatibility mode]
Week 7 [compatibility mode]Week 7 [compatibility mode]
Week 7 [compatibility mode]
Hazrul156
 
Introduction to inverse problems
Introduction to inverse problemsIntroduction to inverse problems
Introduction to inverse problems
Delta Pi Systems
 
A current perspectives of corrected operator splitting (os) for systems
A current perspectives of corrected operator splitting (os) for systemsA current perspectives of corrected operator splitting (os) for systems
A current perspectives of corrected operator splitting (os) for systems
Alexander Decker
 
Lecture4 binary-numbers-logic-operations
Lecture4  binary-numbers-logic-operationsLecture4  binary-numbers-logic-operations
Lecture4 binary-numbers-logic-operations
markme18
 

Similar a 03 finding roots (20)

Assignment6
Assignment6Assignment6
Assignment6
 
04 molecular dynamics
04 molecular dynamics04 molecular dynamics
04 molecular dynamics
 
Amth250 octave matlab some solutions (1)
Amth250 octave matlab some solutions (1)Amth250 octave matlab some solutions (1)
Amth250 octave matlab some solutions (1)
 
Bitwise
BitwiseBitwise
Bitwise
 
QMC: Operator Splitting Workshop, A New (More Intuitive?) Interpretation of I...
QMC: Operator Splitting Workshop, A New (More Intuitive?) Interpretation of I...QMC: Operator Splitting Workshop, A New (More Intuitive?) Interpretation of I...
QMC: Operator Splitting Workshop, A New (More Intuitive?) Interpretation of I...
 
Imc2017 day2-solutions
Imc2017 day2-solutionsImc2017 day2-solutions
Imc2017 day2-solutions
 
Calculus First Test 2011/10/20
Calculus First Test 2011/10/20Calculus First Test 2011/10/20
Calculus First Test 2011/10/20
 
cheb_conf_aksenov.pdf
cheb_conf_aksenov.pdfcheb_conf_aksenov.pdf
cheb_conf_aksenov.pdf
 
Imc2016 day2-solutions
Imc2016 day2-solutionsImc2016 day2-solutions
Imc2016 day2-solutions
 
Continuity Of Functions
Continuity Of FunctionsContinuity Of Functions
Continuity Of Functions
 
Week 7 [compatibility mode]
Week 7 [compatibility mode]Week 7 [compatibility mode]
Week 7 [compatibility mode]
 
Numerical solution of boundary value problems by piecewise analysis method
Numerical solution of boundary value problems by piecewise analysis methodNumerical solution of boundary value problems by piecewise analysis method
Numerical solution of boundary value problems by piecewise analysis method
 
Introduction to inverse problems
Introduction to inverse problemsIntroduction to inverse problems
Introduction to inverse problems
 
Boolean Algebra SOP POS_Computer Architecture.pdf
Boolean Algebra SOP POS_Computer Architecture.pdfBoolean Algebra SOP POS_Computer Architecture.pdf
Boolean Algebra SOP POS_Computer Architecture.pdf
 
A current perspectives of corrected operator splitting (os) for systems
A current perspectives of corrected operator splitting (os) for systemsA current perspectives of corrected operator splitting (os) for systems
A current perspectives of corrected operator splitting (os) for systems
 
Lecture4 binary-numbers-logic-operations
Lecture4  binary-numbers-logic-operationsLecture4  binary-numbers-logic-operations
Lecture4 binary-numbers-logic-operations
 
Pydata Katya Vasilaky
Pydata Katya VasilakyPydata Katya Vasilaky
Pydata Katya Vasilaky
 
Math task 3
Math task 3Math task 3
Math task 3
 
Convexity in the Theory of the Gamma Function.pdf
Convexity in the Theory of the Gamma Function.pdfConvexity in the Theory of the Gamma Function.pdf
Convexity in the Theory of the Gamma Function.pdf
 
QMC: Operator Splitting Workshop, A Splitting Method for Nonsmooth Nonconvex ...
QMC: Operator Splitting Workshop, A Splitting Method for Nonsmooth Nonconvex ...QMC: Operator Splitting Workshop, A Splitting Method for Nonsmooth Nonconvex ...
QMC: Operator Splitting Workshop, A Splitting Method for Nonsmooth Nonconvex ...
 

Más de Sparisoma Viridi

Más de Sparisoma Viridi (20)

Pembelajaran sains berbasis web
Pembelajaran sains berbasis webPembelajaran sains berbasis web
Pembelajaran sains berbasis web
 
Pemodelan Gaya Casimir dalam Sistem Satu-Dimensi Granular Gravitasi-Diri deng...
Pemodelan Gaya Casimir dalam Sistem Satu-Dimensi Granular Gravitasi-Diri deng...Pemodelan Gaya Casimir dalam Sistem Satu-Dimensi Granular Gravitasi-Diri deng...
Pemodelan Gaya Casimir dalam Sistem Satu-Dimensi Granular Gravitasi-Diri deng...
 
Komputasi Nuklir: Pendekatan dan Perkembangannya
Komputasi Nuklir: Pendekatan dan PerkembangannyaKomputasi Nuklir: Pendekatan dan Perkembangannya
Komputasi Nuklir: Pendekatan dan Perkembangannya
 
Edible and dynamics arts using rice: A proposed idea
Edible and dynamics arts using rice: A proposed ideaEdible and dynamics arts using rice: A proposed idea
Edible and dynamics arts using rice: A proposed idea
 
Interaction between Marine Sectors using System Dynamics for Patimban Deep Se...
Interaction between Marine Sectors using System Dynamics for Patimban Deep Se...Interaction between Marine Sectors using System Dynamics for Patimban Deep Se...
Interaction between Marine Sectors using System Dynamics for Patimban Deep Se...
 
Simulation of cell budding & binary fission: A preliminary study using molecu...
Simulation of cell budding & binary fission:A preliminary study using molecu...Simulation of cell budding & binary fission:A preliminary study using molecu...
Simulation of cell budding & binary fission: A preliminary study using molecu...
 
Molecular Dynamics (MD) Method and Agent-Based Model (AMB) in Simulation of S...
Molecular Dynamics (MD) Method and Agent-Based Model (AMB) in Simulation of S...Molecular Dynamics (MD) Method and Agent-Based Model (AMB) in Simulation of S...
Molecular Dynamics (MD) Method and Agent-Based Model (AMB) in Simulation of S...
 
Constructing Origin-Destination Matrix (ODM) using Agent-Based Model (AMB) in...
Constructing Origin-Destination Matrix (ODM) using Agent-Based Model (AMB) in...Constructing Origin-Destination Matrix (ODM) using Agent-Based Model (AMB) in...
Constructing Origin-Destination Matrix (ODM) using Agent-Based Model (AMB) in...
 
The Relation between ABM (Agent-Based Model) and SIR (Susceptible-Infected-Re...
The Relation between ABM (Agent-Based Model) and SIR (Susceptible-Infected-Re...The Relation between ABM (Agent-Based Model) and SIR (Susceptible-Infected-Re...
The Relation between ABM (Agent-Based Model) and SIR (Susceptible-Infected-Re...
 
Pengelolaan Jurnal Ilmiah
Pengelolaan Jurnal IlmiahPengelolaan Jurnal Ilmiah
Pengelolaan Jurnal Ilmiah
 
25 | Perubahan fasa gelombang
25 | Perubahan fasa gelombang25 | Perubahan fasa gelombang
25 | Perubahan fasa gelombang
 
Ilustrasi penjalaran gelombang
Ilustrasi penjalaran gelombangIlustrasi penjalaran gelombang
Ilustrasi penjalaran gelombang
 
Getaran dan gelombang
Getaran dan gelombangGetaran dan gelombang
Getaran dan gelombang
 
Fisika Dasar dan Nilai-nilai yang Diajarkannya
Fisika Dasar dan Nilai-nilai yang DiajarkannyaFisika Dasar dan Nilai-nilai yang Diajarkannya
Fisika Dasar dan Nilai-nilai yang Diajarkannya
 
Pembelajaran Fisika dalam Era Industri 4.0
Pembelajaran Fisika dalam Era Industri 4.0Pembelajaran Fisika dalam Era Industri 4.0
Pembelajaran Fisika dalam Era Industri 4.0
 
Menulis dan Membaca Berkas Teks Polos dengan Python
Menulis dan Membaca Berkas Teks Polos dengan PythonMenulis dan Membaca Berkas Teks Polos dengan Python
Menulis dan Membaca Berkas Teks Polos dengan Python
 
Master Program in Computational Science
Master Program in Computational ScienceMaster Program in Computational Science
Master Program in Computational Science
 
Formulating Two-Body Interaction through Observed Separation Distance
Formulating Two-Body Interaction through Observed Separation DistanceFormulating Two-Body Interaction through Observed Separation Distance
Formulating Two-Body Interaction through Observed Separation Distance
 
Strategi Mempersiapkan Diri Menjadi Guru Sains Kreatif & Inovatif di Era Mile...
Strategi Mempersiapkan Diri Menjadi Guru Sains Kreatif & Inovatif di Era Mile...Strategi Mempersiapkan Diri Menjadi Guru Sains Kreatif & Inovatif di Era Mile...
Strategi Mempersiapkan Diri Menjadi Guru Sains Kreatif & Inovatif di Era Mile...
 
Compaction of two-dimensional system of composite spherical particles under i...
Compaction of two-dimensional system of composite spherical particles under i...Compaction of two-dimensional system of composite spherical particles under i...
Compaction of two-dimensional system of composite spherical particles under i...
 

Último

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 

Último (20)

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 

03 finding roots

  • 1. 0101011 0000000 1110100 0110001 1 0 Finding Roots Sparisoma Viridi Nuclear Physics and Biophysics Research Division Institut Teknologi Bandung, Bandung 40132, Indonesia dudung@fi.itb.ac.id v2011.09.20 FI3102 Computational Physics 1
  • 2. 0101011 0000000 1110100 0110001 Outline 1 • Function and roots 0 • A simple physical problem and its solution • Several methods in finding roots • Graphical method • Newton’s method, secant method • Bisection method • References v2011.09.20 FI3102 Computational Physics 2
  • 3. 0101011 0000000 1110100 0110001 Function 1 • Function: 0 – Output: f(x) – Input: x (the argument) • The argument can be a real number or elements of a given set (matrix, vector, etc) • See reference [1] v2011.09.20 FI3102 Computational Physics 3
  • 4. 0101011 0000000 1110100 0110001 Roots 1 • Argument that makes a function to 0 produce zero output [2, 3] • Argument that make two functions to produce same output [4] • Question 1. Is the second definition actually the same as the first one? v2011.09.20 FI3102 Computational Physics 4
  • 5. 0101011 0000000 1110100 0110001 Roots (cont.) 1 • Example 0 of roots for f(x) = cos (x) in interval [-2π,2π], see [5] v2011.09.20 FI3102 Computational Physics 5
  • 6. 0101011 0000000 1110100 0110001 Roots (cont.) 1 • Say that there are two functions: 0 – First function is f(x) – Second function is g(x) • The second definition of roots is argument that makes two functions produce same output • If x is a root than f(x) = g(x) v2011.09.20 FI3102 Computational Physics 6
  • 7. 0101011 0000000 1110100 0110001 Roots (cont.) 1 • Or, we can introduce a new function 0 – The new function is h(x) = f(x) – g(x) • If x is a root, it makes f(x) = g(x) • If x is a root, it also makes h(x) = 0 • So, both definitions are actually the same (Answer 1) v2011.09.20 FI3102 Computational Physics 7
  • 8. 0101011 0000000 1110100 0110001 A simple physical problem 1 • A ball is launched from bottom of a incline 0 plane as illustrated below, find where and when does it hit the plane! v0 H (xH, yH) α β O (0, 0) v2011.09.20 FI3102 Computational Physics 8
  • 9. 0101011 0000000 1110100 0110001Solving the problem analytically 1 • The ball motions in x and y direction as 0 function of time t are x(t) = v0 [cos (α + β)] t y(t) = v0 [sin (α + β)] t – ½ gt2 then y(t) = y[t(x)] = y(x) will give y = f(x) = [tan (α + β)] x – [g / 2v02 cos2(α + β)] x2 • The equation of incline plane is y = g(x) = [tan β] x v2011.09.20 FI3102 Computational Physics 9
  • 10. 0101011 0000000 1110100 0110001 The roots of the problem 1 • In this case we can use second definition 0 of roots, so f(x) = g(x) → x is a root • Or we construct a new function h(x) h(x) = f(x) – g(x) = [tan (α + β) – tan β] x – [g/2v02 cos2(α + β)] x2 • The view of both definition in finding roots will be shown in the next slide v2011.09.20 FI3102 Computational Physics 10
  • 11. 0101011 0000000 1110100 0110001 Graphics of f(x), g(x), and h(x) 1 0 h(x) f(x) root g(x) v2011.09.20 FI3102 Computational Physics 11
  • 12. 0101011 0000000 1110100 0110001 Graphics of .. (cont.) 1 • Even both graphics show different curve, 0 but they give the same value of x (the root we want to find) • Parameters are: α = π/6, β = π/6, v0 = 5, g = 10, x0 = 0, y0 = 0, ∆x = 0.025 • The root should be around x = 1.4 • And vertical position around y = 0.85 • v2011.09.20 FI3102 Computational Physics 12
  • 13. 0101011 0000000 1110100 0110001 Analytical solution 1 • Using quadratic formula we can find the 0 roots • But this case is simpler since other root are 0 • Then it can found that x = [tan (α + β) – tan β] [2v02 cos2(α + β)] / g = 1.443376 f(x) = f(1.443376) = 0.833333 v2011.09.20 FI3102 Computational Physics 13
  • 14. 0101011 0000000 1110100 0110001 Analytical solution (cont.) 1 • Question 2. If we already know the 0 analytical solution, then for what is it the numerical solution? v2011.09.20 FI3102 Computational Physics 14
  • 15. 0101011 0000000 1110100 0110001 Analytical solution (cont.) 1 • Answer 2. It is for testing whether the 0 numerical solution has the same value as the analytical one • You can not (or should not) use your method or algorithm or code to some problem, before you test it • Test it for the problem that you have already known its solution v2011.09.20 FI3102 Computational Physics 15
  • 16. 0101011 0000000 Several methods in finding roots 1110100 0110001 1 • Graphical method 0 • Newton method • Secant method • Einschlussverfahren method [4]: bisection, regula falsi, pegasus, Anderson-Björck, Zeroin, Illinois, King, Anderson-Björck- King, etc) v2011.09.20 FI3102 Computational Physics 16
  • 17. 0101011 0000000 1110100 0110001 Graphical method 1 • It uses graphics to find the root 0 • It can accommodate the first and second definition of the root • It is rather not accurate since it depends on our judgment to determine whether f(x) = g(x) or h(x) = 0 • Some software, i.e. gnuplot, has feature to return the position of mouse pointer v2011.09.20 FI3102 Computational Physics 17
  • 18. 0101011 0000000 1110100 0110001 Graphical method (cont.) 1 • We (actually) already used this method 0 root analytical solution x = 1.443376 graphical y = 0.833333 solution x = 1.4 y = 0.85 v2011.09.20 FI3102 Computational Physics 18
  • 19. 0101011 0000000 1110100 0110001 Newton’s method 1 • Taylor’s expansion around x = a will give 0 f (x) ≈ f (a) + (x – a)f '(a) with assumption that (x – a) small enough to terminate next term in the series • By setting x = 0 (the target) we can find that x = a – f (a) / f ' (a) • Or, the iterative expression is xi+1 = xi – f (xi) / f '(xi) v2011.09.20 FI3102 Computational Physics 19
  • 20. 0101011 0000000 1110100 0110001 Newton method (cont.) 1 • Question 3. Write the iterative expression 0 for previous problem using Newton’s method [use h(x) instead of f(x) and g(x)] and show also the result • From previous problem: h(x) = [tan (α + β) – tan β] x – [g/2v02 cos2(α + β)] x2 h'(x) = ? xi+1 = xi + ? v2011.09.20 FI3102 Computational Physics 20
  • 21. 0101011 0000000 1110100 0110001 Newton method (cont.) 1 • Answer 3. It can be found that 0   g  2  [tan (α + β ) − tan β ]x i −  xi   2 v o cos (α + β )   2 2  xi +1 = xi −    [tan (α + β ) − tan β ] −  g  2    2 xi   v o cos (α + β )  2   v2011.09.20 FI3102 Computational Physics 21
  • 22. 0101011 0000000 1110100 0110001 Newton method (cont.) 1 • And the result is 0 • Only need about 6 iterations • x = 1.443376 (analytical solu- tion is 1.443376) • In a good agree- ment wtih a.s. v2011.09.20 FI3102 Computational Physics 22
  • 23. 0101011 0000000 1110100 0110001 Secant method 1 • In Newton’s method we must know or 0 calculate the derivative of f(x) • In secant method it is calculated using f '(xi) ≈ [f(xi) – f(xi-1)] / (xi – xi-1) • And this gives the iterative expression xi+1 = xi – (xi – xi-1) f (xi) / [f(xi) – f(xi-1)] with xi and xi-1 as starting values v2011.09.20 FI3102 Computational Physics 23
  • 24. 0101011 0000000 1110100 0110001 Secant method (cont.) 1 • Secant method (right) is more efficient 0 than Newton’s method (left) as illustrated in [3] v2011.09.20 FI3102 Computational Physics 24
  • 25. 0101011 0000000 1110100 0110001 Secant method (cont.) 1 • The result is 0 • Only (also) need ~ 6 iterations • x = 1.443376 (analytical solu- tion is 1.443376) • In a good agree- ment wtih a.s. v2011.09.20 FI3102 Computational Physics 25
  • 26. 0101011 0000000 1110100 0110001 Newton’s vs secant method 1 Iteration Newton’s Secant method Difference method 0 1 1.796544 1.675235 0.121309 2 1.501396 1.383598 0.117798 3 1.445534 1.434796 0.010738 4 1.443379 1.443749 -0.00037 5 1.443376 1.443373 2.23E-06 6 1.443376 1.443376 5.76E-10 7 1.443376 1.443376 -8.9E-16 8 1.443376 1.443376 -2.2E-16 9 1.443376 1.443376 4.44E-16 10 1.443376 1.443376 0 v2011.09.20 FI3102 Computational Physics 26
  • 27. 0101011 0000000 1110100 0110001 Newton’s vs secant ... (cont.) 1 • For Newton’s method x0 = 1 0 • For secant method x0 = 1 and x1 = 1.1 • Both methods gives similar result at about 10 iterations (difference less than 10–16) v2011.09.20 FI3102 Computational Physics 27
  • 28. 0101011 0000000 1110100 0110001 Bisection method 1 • Suppose that we have a function as in [6] 0 v2011.09.20 FI3102 Computational Physics 28
  • 29. 0101011 0000000 1110100 0110001 Bisection method (cont.) 1 • The algorithm: 0 v2011.09.20 FI3102 Computational Physics 29
  • 30. 0101011 0000000 1110100 0110001 Example: x2 – 4x + 3 1 0 v2011.09.20 FI3102 Computational Physics 30
  • 31. 0101011 0000000 1110100 0110001 Example: x2 – 4x + 3 (cont.) 1 0 v2011.09.20 FI3102 Computational Physics 31
  • 32. 0101011 0000000 1110100 0110001 Example: x2 – 4x + 3 (cont.) 1 • The roots have been found 0 x1 ≈ 2.999 (analytical solution is 3) x2 ≈ 1.001 (analytical solution is 1) • Further iteration (more than 10) can be performed to get nearer results • What about muliple roots? Any idea? v2011.09.20 FI3102 Computational Physics 32
  • 33. 0101011 0000000 1110100 0110001 Multiple roots 1 • After finding one root the original equation 0 must be modified • Question 4. Do you know how to modify the original equation in order to obtain other root? v2011.09.20 FI3102 Computational Physics 33
  • 34. 0101011 0000000 1110100 0110001 Multiple roots (cont.) 1 • Answer 4. Divide the original equation 0 with all previous found root(s) in order to avoid the previous root(s) to be found again • Could you write the algorithm together with the finding roots algorithm? v2011.09.20 FI3102 Computational Physics 34
  • 35. 0101011 0000000 1110100 0110001 Multiple roots (cont.) 1 • Multiple roots algorithm (1st root) 0 – Finding roots algorithm • Multiple roots algorithm (2nd root) – Finding roots algorithm • Multiple roots algorithm (3rd root) – Finding roots algorithm • .. for the nth root .. v2011.09.20 FI3102 Computational Physics 35
  • 36. 0101011 0000000 1110100 0110001 Summary 1 • Three different methods for finding roots 0 have been presented • A simple physical problem is used to illustrate the first two method • Other problems which need to find roots can also be solved using given methods • Algorithm to solve multiple roots problem has not yet been discussed (only the idea) v2011.09.20 FI3102 Computational Physics 36
  • 37. 0101011 0000000 1110100 0110001 References 1 1. Wikipedia contributors, “Function (mathe- 0 matics)”, Wikipedia, The Free Encyclopedia, 18 September 2011, 10:26 UTC, oldid:451121927> [2011.09.19 07.31+07] 2. Paul L. DeVries, “A First Course in Computational Physics”, John Wiley & Sons, New York, First Edition, 1994, pp. 41-85 v2011.09.20 FI3102 Computational Physics 37
  • 38. 0101011 0000000 1110100 0110001 References (cont.) 1 3. Steven E. Koonin and Dawn C. Meredith, 0 “Computational Physics Fortran Version”, Westview, Canada, First Edition, 1990, pp. 11-14 4. Gisela Engeln-Müllges, Klaus Niederdrenk, and Reinhard Wodicka, “Numerik-Algorithmen”, Springer, Berlin, 10. Auflage, 2011, pp.25-90 v2011.09.20 FI3102 Computational Physics 38
  • 39. 0101011 0000000 1110100 0110001 References (cont.) 1 5. Wikipedia contributors, “Zero of a 0 function”, Wikipedia, The Free Encyclopedia, 12 September 2011, 02:23 UTC, oldid:449926806 [2011.09.19 07.48+07] 6. Sparisoma Viridi, “Computational Physics”, Version 3, 2011, pp. 49-53 v2011.09.20 FI3102 Computational Physics 39
  • 40. 0101011 0000000 1110100 0110001 1 0 Thank you (for your patience) v2011.09.20 FI3102 Computational Physics 40