EE 3561_Unit_1(c)Al-Dhaifallah 14351 EE 3561 : - Computational Methods in Electrical Engineering Unit 1: Introduction to Computational Methods and Taylor.

Slides:



Advertisements
Similar presentations
Numerical Integration
Advertisements

3- 1 Chapter 3 Introduction to Numerical Methods Second-order polynomial equation: analytical solution (closed-form solution): For many types of problems,
Lecture 5 Newton-Raphson Method
Roundoff and truncation errors
Dr. Mujahed Al-Dhaifallah
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Asymptotic error expansion Example 1: Numerical differentiation –Truncation error via Taylor expansion.
Major: All Engineering Majors Author(s): Autar Kaw
ECIV 201 Computational Methods for Civil Engineers Richard P. Ray, Ph.D., P.E. Error Analysis.
Approximations and Errors
Round-Off and Truncation Errors
Chapter 1 Introduction The solutions of engineering problems can be obtained using analytical methods or numerical methods. Analytical differentiation.
Curve-Fitting Regression
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 3 Approximations and Errors.
Course Introduction ENTC 210: Circuit Analysis I Rohit Singhal Lecturer Texas A&M University.
Revision.
CVEN Exam 1 Review. Matlab.m files Matlab.m files Programming: FOR, WHILE, IF and FUNCTION Programming: FOR, WHILE, IF and FUNCTION Taylor Series.
1 Error Analysis Part 1 The Basics. 2 Key Concepts Analytical vs. numerical Methods Representation of floating-point numbers Concept of significant digits.
MATH 330: Ordinary Differential Equations Fall 2014.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM.
Numerical Methods Intro to Numerical Methods &
Major: All Engineering Majors Author(s): Autar Kaw
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 31.
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
Introduction and Analysis of Error Pertemuan 1
MECN 3500 Inter - Bayamon Lecture Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Yasser F. O. Mohammad Teaching Team Instructor: Yasser F. O. Mohammad Computers and Systems section (Intelligent Robotics)
MA2213 Lecture 4 Numerical Integration. Introduction Definition is the limit of Riemann sums I(f)
Chapter 17 Boundary Value Problems. Standard Form of Two-Point Boundary Value Problem In total, there are n 1 +n 2 =N boundary conditions.
Lecture 2 Number Representation and accuracy
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
MATH 685/CSI 700 Lecture Notes Lecture 1. Intro to Scientific Computing.
CISE301_Topic11 CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4:
Introduction to Numerical Analysis I MATH/CMPSC 455 Fall 2011 Instructor: Xiaozhe Hu (Shawn)
CSE 541 Rick Parent ELEMENTARY NUMERICAL METHODS Winter 2012.
Review Taylor Series and Error Analysis Roots of Equations
Round-off Errors.
Chemical Engineering Majors Author(s): Autar Kaw
Round-off Errors and Computer Arithmetic. The arithmetic performed by a calculator or computer is different from the arithmetic in algebra and calculus.
Curve-Fitting Regression
MECN 3500 Inter - Bayamon Lecture 3 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Welcome to Numerical Analysis Math 448/548 Cpt S 430/530 Fall 2015 Instructor: John Miller, West 134E Class web page can be found.
Numerical Methods for Engineering MECN 3500
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Introduction Course Outline.
Numerical Methods.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 3.
Numerical Analysis Intro to Scientific Computing.
Gaussian Elimination Electrical Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for.
MECN 3500 Inter - Bayamon Lecture 6 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Numerical Analysis CC413 Propagation of Errors.
Gaussian Elimination Industrial Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for.
Gaussian Elimination Mechanical Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for.
Welcome to Numerical Analysis Math 448/548 Cpt S 430/530 Fall 2016 Instructor: John Miller, West 134E Class web page can be found.
Numerical Analysis Intro to Scientific Computing.
Gaussian Elimination Civil Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for STEM.
Autar Kaw Benjamin Rigsby Transforming Numerical Methods Education for STEM Undergraduates.
Numerical Analysis CC413 Propagation of Errors. 2 In numerical methods, the calculations are not made with exact numbers. How do these inaccuracies propagate.
Lecture 1 Introduction Dr. Hakikur Rahman Thanks to Dr. S. M. Lutful Kabir for Slides CSE 330: Numerical Methods.
NUMERICAL ANALYSIS I. Introduction Numerical analysis is concerned with the process by which mathematical problems are solved by the operations.
Introduction to Numerical Analysis I
Welcome to Computers in Civil Engineering 53:081 Spring 2003
MATH/COMP 340: Numerical Analysis I
New head garb has been ordered
525602:Advanced Numerical Methods for ME
Recall our hypothetical computer Marc-32
MATH 2140 Numerical Methods
Approximations and Round-Off Errors Chapter 3
Numerical Analysis Lecture 2.
Chapter 1 / Error in Numerical Method
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Presentation transcript:

EE 3561_Unit_1(c)Al-Dhaifallah EE 3561 : - Computational Methods in Electrical Engineering Unit 1: Introduction to Computational Methods and Taylor Series Lectures 1-3: Mujahed Al-Dhaifallah (Term 351)

EE 3561_Unit_1(c)Al-Dhaifallah Mujahed Al-Dhaifallah مجاهد آل ضيف الله  Office Hours Office Hours: SMT, 1:30 – 2:30 PM, by appointment  Office: Dean Office.  Tel: 

Prerequisites  Successful completion of Math 1070, Math2040, CS1090 EE 3561_Unit_1(c)Al-Dhaifallah 14353

Course Description  EE 3561 is a course on Introduction to computational methods using computer packages, e.g. Matlab, Mathcad or IMSL. Solution of non-linear equations. Solution of large systems of linear equations. Interpolation. Function approximation. Numerical differentiation and integration. Solution of the initial value problem of ordinary differential equations. Applications on Electrical Engineering. EE 3561_Unit_1(c)Al-Dhaifallah 14354

Textbooks  “Numerical Methods for Engineers”. By Steven C. Chapra and Raymond P. Canale EE 3561_Unit_1(c)Al-Dhaifallah 14355

Attendance  Regular lecture attendance is required. There will be part of the grade on attendance EE 3561_Unit_1(c)Al-Dhaifallah 14356

Student Evaluation Exam 1 10 Exam 2 10 Computer Work 5 Quizzes 5 HW 5 Attendance 5 Final Exams 60 Total 100 EE 3561_Unit_1(c)Al-Dhaifallah 14357

Quizzes  Announced  After each HW. From HW material EE 3561_Unit_1(c)Al-Dhaifallah 14358

Assignment Requirements  Late assignments will not be accepted.  assignments are due at the beginning of lecture.  Sloppy or disorganized work will adversely affect your grade. EE 3561_Unit_1(c)Al-Dhaifallah 14359

Exams  Attendance is mandatory.  Make-up exam are not given unless permission is obtained prior to exam day from the instructor a valid, documented emergency has arisen EE 3561_Unit_1(c)Al-Dhaifallah

Academic Dishonesty  cheating  fabrication  falsification  multiple submissions  plagiarism  complicity EE 3561_Unit_1(c)Al-Dhaifallah

EE 3561_Unit_1(c)Al-Dhaifallah Rules and Regulations  No make up quizzes  DN grade --- (25%) 8 unexcused absences  Homework Assignments are due to the beginning of the lectures.  Absence is not an excuse for not submitting the Homework.  Late submission may not be accepted

EE 3561_Unit_1(c)Al-Dhaifallah Lecture 1 Introduction to Computational Methods  What are Computational METHODS ?  Why do we need them?  Topics covered in EE3561. Reading Assignment: pages 3-10 of text book

EE 3561_Unit_1(c)Al-Dhaifallah Analytical Solutions  Analytical methods give exact solutions  Example: Analytical method to evaluate the integral  Numerical methods are mathematical procedures to calculate approximate solution (Trapezoid Method)

EE 3561_Unit_1(c)Al-Dhaifallah Computational Methods Computational Methods: Algorithms that are used to obtain approximate solutions of a mathematical problem. Why do we need them? 1. No analytical solution exists, 2. An analytical solution is difficult to obtain or not practical.

EE 3561_Unit_1(c)Al-Dhaifallah What do we need Basic Needs in the Computational Methods: Practical: can be computed in a reasonable amount of time. Accurate:  Good approximate to the true value  Information about the approximation error (Bounds, error order,… )

EE 3561_Unit_1(c)Al-Dhaifallah Outlines of the Course  Taylor Theorem  Number Representation  Solution of nonlinear Equations  Interpolation  Numerical Differentiation  Numerical Integration  Solution of linear Equations  Least Squares curve fitting  Solution of ordinary differential equations

EE 3561_Unit_1(c)Al-Dhaifallah Solution of Nonlinear Equations  Some simple equations can be solved analytically  Many other equations have no analytical solution

EE 3561_Unit_1(c)Al-Dhaifallah Methods for solving Nonlinear Equations o Bisection Method o Newton-Raphson Method o Secant Method

EE 3561_Unit_1(c)Al-Dhaifallah Solution of Systems of Linear Equations

EE 3561_Unit_1(c)Al-Dhaifallah Cramer’s Rule is not practical

EE 3561_Unit_1(c)Al-Dhaifallah Methods for solving Systems of Linear Equations o Naive Gaussian Elimination o Gaussian Elimination with Scaled Partial pivoting

EE 3561_Unit_1(c)Al-Dhaifallah Curve Fitting  Given a set of data  Select a curve that best fit the data.  One choice is find the curve so that the sum of the square of the error is minimized.

EE 3561_Unit_1(c)Al-Dhaifallah Interpolation  Given a set of data  find a polynomial P(x) whose graph passes through all tabulated points.

EE 3561_Unit_1(c)Al-Dhaifallah Methods for Curve Fitting o Least Squares o Linear Regression o Nonlinear least Squares Problems o Interpolation o Newton polynomial interpolation o Lagrange interpolation

EE 3561_Unit_1(c)Al-Dhaifallah Integration  Some functions can be integrated analytically

EE 3561_Unit_1(c)Al-Dhaifallah Methods for Numerical Integration o Upper and Lower Sums o Trapezoid Method o Romberg Method o Gauss Quadrature

EE 3561_Unit_1(c)Al-Dhaifallah Solution of Ordinary Differential Equations

EE 3561_Unit_1(c)Al-Dhaifallah Summary  Computational Methods: Algorithms that are used to obtain numerical solution of a mathematical problem.  We need them when No analytical solution exist or it is difficult to obtain.  Solution of nonlinear Equations  Solution of linear Equations  Curve fitting Least Squares Interpolation  Numerical Integration  Numerical Differentiation  Solution of ordinary differential equations Topics Covered in the Course

EE 3561_Unit_1(c)Al-Dhaifallah  Number Representation  Normalized Floating Point Representation  Significant Digits  Accuracy and Precision  Rounding and Chopping  Reading assignment: Chapter 2 Lecture 2 Number Representation and accuracy

EE 3561_Unit_1(c)Al-Dhaifallah Representing Real Numbers  You are familiar with the decimal system  Decimal System Base =10, Digits(0,1,…9)  Standard Representations

EE 3561_Unit_1(c)Al-Dhaifallah Normalized Floating Point Representation  Normalized Floating Point Representation  No integral part,  Advantage Efficient in representing very small or very large numbers

EE 3561_Unit_1(c)Al-Dhaifallah Binary System  Binary System Base=2, Digits{0,1}

EE 3561_Unit_1(c)Al-Dhaifallah Bit Representation (sign: 1 bit, Mantissa 3bits,exponent 3 bits)

EE 3561_Unit_1(c)Al-Dhaifallah Fact  Number that have finite expansion in one numbering system may have an infinite expansion in another numbering system  You can never represent 0.1 exactly in any computer

EE 3561_Unit_1(c)Al-Dhaifallah Representation  Hypothetical Machine (real computers use ≥ 23 bit mantissa)  Example: If a machine has 5 bits representation distributed as follows Mantissa 2 bits exponent 2 bit sign 1 bit Possible machine numbers (0.25=00001) (0.375= 01111) (1.5=00111)

EE 3561_Unit_1(c)Al-Dhaifallah Representation Gap near zero

EE 3561_Unit_1(c)Al-Dhaifallah Remarks  Numbers that can be exactly represented are called machine numbers  Difference between machine numbers is not uniform. So, sum of machine numbers is not necessarily a machine number =0.625 (not a machine number)

EE 3561_Unit_1(c)Al-Dhaifallah Significant Digits  Significant digits are those digits that can be used with confidence Length of green rectangle = 3.45 significant

EE 3561_Unit_1(c)Al-Dhaifallah Loss of Significance  Mathematical operations may lead to reducing the number of significant digits E+02 6 significant digits ─ E+02 6 significant digits ────────────── E+02 2 significant digits E-02 Subtracting nearly equal numbers causes loss of significance

EE 3561_Unit_1(c)Al-Dhaifallah Accuracy and Precision  Accuracy is related to closeness to the true value  Precision is related to the closeness to other estimated values

EE 3561_Unit_1(c)Al-Dhaifallah Better Precision Better accuracy Accuracy is related to closeness to the true value Precision is related to the closeness to other estimated values Accuracy and Precision

EE 3561_Unit_1(c)Al-Dhaifallah Rounding and Chopping  Rounding: Replace the number by the nearest machine number  Chopping: Throw all extra digits True Rounding (1.2) Chopping (1.1)

EE 3561_Unit_1(c)Al-Dhaifallah Error Definitions True Error can be computed if the true value is known

EE 3561_Unit_1(c)Al-Dhaifallah Error Definitions Estimated error Used when the true value is not known

EE 3561_Unit_1(c)Al-Dhaifallah Notation We say the estimate is correct to n decimal digits if We say the estimate is correct to n decimal digits rounded if

EE 3561_Unit_1(c)Al-Dhaifallah Summary  Number Representation Number that have finite expansion in one numbering system may have an infinite expansion in another numbering system.  Normalized Floating Point Representation Efficient in representing very small or very large numbers Difference between machine numbers is not uniform Representation error depends on the number of bits used in the mantissa.

EE 3561_Unit_1(c)Al-Dhaifallah Summary  Rounding Chopping  Error Definitions: Absolute true error True Percent relative error Estimated absolute error Estimated percent relative error