MATH 2140 Numerical Methods

Slides:



Advertisements
Similar presentations
Differential Equations
Advertisements

Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression Chapter.
P M V Subbarao Professor Mechanical Engineering Department
EGR 105 Foundations of Engineering I
Least Square Regression
Least Square Regression
EGR 105 Foundations of Engineering I Fall 2007 – week 7 Excel part 3 - regression.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 17 Least Square Regression.
EGR 105 Foundations of Engineering I Fall 2007 – week 7 Excel part 3 - regression.
Solving equations involving exponents and logarithms
Calibration & Curve Fitting
Lesson Nonlinear Regression: Transformations.
Questions over 4.6 HW???. 4.7 (Green) Solve Exponential and Logarithmic Equations No School: Monday Logarithms Test: 1/21/10 (Thursday)
Least-Squares Regression
Aim: How do we solve exponential and logarithmic equations ? Do Now: Solve each equation: a. log 10 x 2 = 6 b. ln x = –3 Homework: Handout.
CpE- 310B Engineering Computation and Simulation Dr. Manal Al-Bzoor
Logarithmic and Exponential Equations
Expand the following log Log 3 (x 2 yz / w 9 ) Condense the following log Log 2 (x) + log 2 (y) - 3log 2 (z)
CISE301_Topic41 CISE301: Numerical Methods Topic 4: Least Squares Curve Fitting Lectures 18-19: KFUPM Read Chapter 17 of the textbook.
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Regression Regression relationship = trend + scatter
Chapter 3 Exponential and Logarithmic Functions. Chapter 3.1 Exponential Functions.
How are you all doing? Any questions about anything?
Logarithms 1 Converting from Logarithmic Form to Exponential Form and Back 2 Solving Logarithmic Equations & Inequalities 3 Practice Problems.
MODEL FITTING jiangyushan. Introduction The goal of model fitting is to choose values for the parameters in a function to best describe a set of data.
Math 4030 – 11b Method of Least Squares. Model: Dependent (response) Variable Independent (control) Variable Random Error Objectives: Find (estimated)
Curve Fitting Introduction Least-Squares Regression Linear Regression Polynomial Regression Multiple Linear Regression Today’s class Numerical Methods.
12.8 Exponential and Logarithmic Equations and Problem Solving Math, Statistics & Physics 1.
4.7 (Green) Solve Exponential and Logarithmic Equations No School: Monday Logarithms Test: 1/21/10 (Thursday)
Chapter 8 Systems of Linear Equations in Two Variables Section 8.3.
Solving Logarithmic Equations I.. Relationship between Exponential and Logarithmic Equations. A) Logs and Exponentials are INVERSES of each other. 1) That.
LOGARITHMIC AND EXPONENTIAL EQUATIONS LOGARITHMIC AND EXPONENTIAL EQUATIONS SECTION 4.6.
Solving Exponential and Logarithmic Equations
Solving Exponential Equations
Solving Logarithmic Equations
Warm Up WARM UP Evaluate the expression without using a calculator.
Warm-Up: Expand ..
CHAPTER 3 NUMERICAL METHODS.
Logarithmic Functions and Their Graphs
Solving Logarithmic Equations
Solving Exponential Equations
Packet #15 Exponential and Logarithmic Equations
5.4 Logarithmic Functions and Models
Major: All Engineering Majors Authors: Autar Kaw, Luke Snyder
Solving Equations by Factoring and Problem Solving
MATH 2140 Numerical Methods
MATH 2140 Numerical Methods
MATH 2140 Numerical Methods
MATH 2140 Numerical Methods
Solving Exponential & logarithmic Equations
MATH 2140 Numerical Methods
MATH 2140 Numerical Methods
Linear regression Fitting a straight line to observations.
Graphing Techniques.
Worksheet Key 1/2/2019 9:28 PM Solving Exp and Log Equations.
Section 5.5 Additional Popper 34: Choice A for #1 – 10
Solve for x: log3x– log3(x2 – 8) = log38x
MATH 2140 Numerical Methods
Exponential and Logarithmic Functions
Nonlinear Fitting.
Least Square Regression
MATH 2140 Numerical Methods
More Properties of Logarithms
Section 5.5 Additional Popper 34: Choice A for #1 – 10
Section 5.5 Additional Popper 34: Choice A for #1 – 10
Warm Up  .
MATH 2140 Numerical Methods
Regression and Correlation of Data
MATH 2140 Numerical Methods
MATH 2140 Numerical Methods
Presentation transcript:

MATH 2140 Numerical Methods Faculty of Engineering Mechanical Engineering Department MATH 2140 Numerical Methods Instructor: Dr. Mohamed El-Shazly Associate Prof. of Mechanical Design and Tribology melshazly@ksu.edu.sa Office: F072

Curve-Fitting Polynomial Interpolation

CURVE FITTING WITH NONLINEAR EQUATION BY WRITING THE EQUATION IN A LINEAR FORM Many situations in science and engineering show that the relationship between the quantities that are being considered is not linear. For example, Fig. 6-8 shows a plot of data points that were measured in an experiment with an RC circuit. In this experiment, the voltage across the resistor is measured as a function of time, starting when the switch is closed.

Examples of nonlinear functions used for curve fitting in the present section are:

Writing a nonlinear equation in linear form In order to be able to use linear regression, the form of a nonlinear equation of two variables is changed such that the new form is linear with terms that contain the original variables. For example, the power function can be put into linear form by taking the natural logarithm (ln) of both sides:

EXAMPLE 1 Find the curve of best fit of the type : to the following data by the method of least squares:

EXAMPLE 2 For the data given below, find the equation to the best fitting exponential curve of the form: And if you need to convert between them: log10(x) = ln(x) / ln(10) ln(x) = log10(x) / log10(e)

EXAMPLE 3 Given: xi 1 2 3 yi 2.4 5 9

Linearization Method

Evaluating Sums and Solving xi 1 2 3 ∑=6 yi 2.4 5 9 zi=ln(yi) 0.875469 1.609438 2.197225 ∑=4.68213 xi2 4 ∑=14 xi zi 3.218876 6.591674 ∑=10.6860

Given the data: to this data. x 1 2 3 4 y 1.5 2.5 3.5 5 7.5 1 2 3 4 y 1.5 2.5 3.5 5 7.5 Find the exponential function fit to this data.