numerical methods - file.upi.edufile.upi.edu/direktori/fpmipa/jur._pend... · numerical methods...

11

Upload: others

Post on 10-Jun-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: NUMERICAL METHODS - file.upi.edufile.upi.edu/Direktori/FPMIPA/JUR._PEND... · Numerical methods tend to emphasize the implementation of the algorithms, perhaps at the expense of the
Page 2: NUMERICAL METHODS - file.upi.edufile.upi.edu/Direktori/FPMIPA/JUR._PEND... · Numerical methods tend to emphasize the implementation of the algorithms, perhaps at the expense of the

NUMERICAL METHODS

By :Dewi Rachmatin

Page 3: NUMERICAL METHODS - file.upi.edufile.upi.edu/Direktori/FPMIPA/JUR._PEND... · Numerical methods tend to emphasize the implementation of the algorithms, perhaps at the expense of the

INTRODUCTION

Numerical methods tend to emphasize the implementation of the algorithms, perhaps at the expense of the underlying mathematical theory that explain why the methods work.

Numerical analysis tend to emphasize this underlying mathematical theory, perhaps at the expense of some of the implementation issues.

Page 4: NUMERICAL METHODS - file.upi.edufile.upi.edu/Direktori/FPMIPA/JUR._PEND... · Numerical methods tend to emphasize the implementation of the algorithms, perhaps at the expense of the

The best approach, of course, is to properly mix the study of the algorithms and their implementation (“methods”) with the study of the mathematical theory (“analysis”) that support them.That is the goal of this course.

Page 5: NUMERICAL METHODS - file.upi.edufile.upi.edu/Direktori/FPMIPA/JUR._PEND... · Numerical methods tend to emphasize the implementation of the algorithms, perhaps at the expense of the

When people speak of using a computer to design an airplane, predict the weather, or otherwise solve a complex science or engineering problem, they are talking about using numerical methods and analysis.

The kind of problems and areas of endeavor that use these kinds of techniques are ever expanding.

Page 6: NUMERICAL METHODS - file.upi.edufile.upi.edu/Direktori/FPMIPA/JUR._PEND... · Numerical methods tend to emphasize the implementation of the algorithms, perhaps at the expense of the

For example, computational mathematics-another name for the material that we consider here- is now commonly used in the study of financial markets and investment structures, an area of study that does not ordinary come to mind when we think of “scientific” computation.

Page 7: NUMERICAL METHODS - file.upi.edufile.upi.edu/Direktori/FPMIPA/JUR._PEND... · Numerical methods tend to emphasize the implementation of the algorithms, perhaps at the expense of the

There are a number of different ways to break down the subject into component parts. We will discuss the derivation of the algorithms, we will discuss the implementation of the algorithms, and we will also analyze the algorithms mathematically, in order to learn how best to use them and how best to implement them.

Page 8: NUMERICAL METHODS - file.upi.edufile.upi.edu/Direktori/FPMIPA/JUR._PEND... · Numerical methods tend to emphasize the implementation of the algorithms, perhaps at the expense of the

In our study of each technique, we will usually be concerned with to issues that often are competing with each other :

Accuracy : very few of our computation will yield the exact answer to the problem, so we will have to understand how much error is made, and how to control (or even diminish) that error.

Page 9: NUMERICAL METHODS - file.upi.edufile.upi.edu/Direktori/FPMIPA/JUR._PEND... · Numerical methods tend to emphasize the implementation of the algorithms, perhaps at the expense of the

Efficiency : Does the algorithms take an inordinate amount of computer time?This might seem to be an odd question to concern ourselves with-after all, computers are fast, right? But there are slowly ways to do things.All else being equal (it rarely is), we prefer the fast ways.

Page 10: NUMERICAL METHODS - file.upi.edufile.upi.edu/Direktori/FPMIPA/JUR._PEND... · Numerical methods tend to emphasize the implementation of the algorithms, perhaps at the expense of the

ERROR

If A is quantity we want to compute and Ah is an approximation to that quantity, then the error is difference between the two, error = A – Ah .

The absolute error is simply the absolute value of the error.

The relative error normalizes by the absolute value of the exact value,relative error = abs(A – Ah)/abs(A) ; A≠0.

Page 11: NUMERICAL METHODS - file.upi.edufile.upi.edu/Direktori/FPMIPA/JUR._PEND... · Numerical methods tend to emphasize the implementation of the algorithms, perhaps at the expense of the

BASIC CONCEPTS

Basic Mathematics Calculus, we will use such as : Taylor’s

Theorem with Remainder, Intermediate Value Theorem

Linear Algebra, we will use Computer Programming Ordinary Differential Equation