Reading Between the Lines

Slides:



Advertisements
Similar presentations
Numerical Methods.  Polynomial interpolation involves finding a polynomial of order n that passes through the n+1 points.  Several methods to obtain.
Advertisements

Autar Kaw Humberto Isaza
Newton’s Divided Difference Polynomial Method of Interpolation
Selected from presentations by Jim Ramsay, McGill University, Hongliang Fei, and Brian Quanz Basis Basics.
Chapter 18 Interpolation The Islamic University of Gaza
1 Direct Method of Interpolation Electrical Engineering Majors Authors: Autar Kaw, Jai Paul
Differentiation-Discrete Functions
Direct Method of Interpolation
7/2/ Backward Divided Difference Major: All Engineering Majors Authors: Autar Kaw, Sri Harsha Garapati
8/15/ Differentiation-Discrete Functions Major: All Engineering Majors Authors: Autar Kaw, Sri Harsha Garapati.
Reading Between the Lines
9/14/ Trapezoidal Rule of Integration Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
1 Spline Interpolation Method Computer Engineering Majors Authors: Autar Kaw, Jai Paul
Curve Fitting and Interpolation: Lecture (I)
1 Interpolation. 2 What is Interpolation ? Given (x 0,y 0 ), (x 1,y 1 ), …… (x n,y n ), find the value of ‘y’ at a.
1 Lagrangian Interpolation Major: All Engineering Majors Authors: Autar Kaw, Jai Paul
1 Newton’s Divided Difference Polynomial Method of Interpolation Chemical Engineering Majors Authors: Autar Kaw, Jai.
Numerical Methods For Slides Thanks to Lecture 6 Interpolation
Quadratic Spline Interpolation Part 1 of 2
1 Newton’s Divided Difference Polynomial Method of Interpolation Major: All Engineering Majors Authors: Autar Kaw,
1 Lagrangian Interpolation Computer Engineering Majors Authors: Autar Kaw, Jai Paul
Computer Programming (TKK-2144) 13/14 Semester 1 Instructor: Rama Oktavian Office Hr.: M.13-15, W Th , F
1 Direct Method of Interpolation Major: All Engineering Majors Authors: Autar Kaw, Jai Paul
1 INTERPOLASI. Direct Method of Interpolation 3 What is Interpolation ? Given (x 0,y 0 ), (x 1,y 1 ), …… (x n,y n ), find the value of ‘y’ at a value.
1 Direct Method of Interpolation Computer Engineering Majors Authors: Autar Kaw, Jai Paul
1 Direct Method of Interpolation Mechanical Engineering Majors Authors: Autar Kaw, Jai Paul
1 Spline Interpolation Method Major: All Engineering Majors Authors: Autar Kaw, Jai Paul
1 Newton’s Divided Difference Polynomial Method of Interpolation Mechanical Engineering Majors Authors: Autar Kaw,
1 Spline Interpolation Method Mechanical Engineering Majors Authors: Autar Kaw, Jai Paul
6/13/ Linear Regression Civil Engineering Majors Authors: Autar Kaw, Luke Snyder
1D Kinematics Equations and Problems. Velocity The rate at an object changes position relative to something stationary. X VT ÷ x ÷
Introduction to Numerical Methods Mathematical Procedures
Introduction to Scientific Computing
Gauss Quadrature Rule of Integration
Interpolation.
Differentiation-Discrete Functions
Differentiation-Discrete Functions
Reading Between the Lines
Major: All Engineering Majors Authors: Autar Kaw, Luke Snyder
Newton’s Divided Difference Polynomial Method of Interpolation
Introduction to Scientific Computing
Spline Interpolation Method
Major: All Engineering Majors Authors: Autar Kaw, Luke Snyder
Spline Interpolation Method
Central Divided Difference
Spline Interpolation Method
Spline Interpolation Method
Direct Method of Interpolation
Spline Interpolation Method
Lagrangian Interpolation
MATH 2140 Numerical Methods
Integrating Discrete Functions
Newton’s Divided Difference Polynomial Method of Interpolation
Trapezoidal Rule of Integration
Spline Interpolation Method
Lagrangian Interpolation
Lagrangian Interpolation
Direct Method of Interpolation
INTERPOLASI.
Why Splines ?
Newton’s Divided Difference Polynomial Method of Interpolation
Forward Divided Difference
Lagrangian Interpolation
Lagrangian Interpolation
Mechanical Engineering Majors Authors: Autar Kaw, Luke Snyder
Direct Method of Interpolation
Forward Divided Difference
Spline Interpolation Method
Newton’s Divided Difference Polynomial Method of Interpolation
Lagrangian Interpolation
Presentation transcript:

Reading Between the Lines Interpolation Reading Between the Lines

What is Interpolation ? Figure Interpolation of discrete data. Given (x0,y0), (x1,y1), …… (xn,yn), find the value of ‘y’ at a value of ‘x’ that is not given. Figure Interpolation of discrete data. http://nm.mathforcollege.com

http://nm.mathforcollege.com APPLIED PROBLEMS

Fly Rocket Fly, Fly Rocket Fly The upward velocity of a rocket is given as a function of time in table below. Find the velocity and acceleration at t=16 seconds. Table Velocity as a function of time. 10 227.04 15 362.78 20 517.35 22.5 602.97 30 901.67 Velocity vs. time data for the rocket example

Specific Heat of Carbon A carbon block is heated up from room temperature of 300K to 1800K. How much heat is required to do so? Temperature (K) Specific Heat (J/kg-K) 200 420 400 1070 600 1370 1000 1820 1500 2000 2120

Thermistor Calibration Thermistors are based on change in resistance of a material with temperature. A manufacturer of thermistors makes the following observations on a thermistor. Determine the calibration curve for thermistor.   R (Ω) T(°C) 1101.0 911.3 636.0 451.1 25.113 30.131 40.120 50.128

Follow the Cam A curve needs to be fit through the given points to fabricate the cam. 1 2 3 5 6 7 X Y 4 Point x (in.) y (in.) 1 2.20 0.00 2 1.28 0.88 3 0.66 1.14 4 1.20 5 –0.60 1.04 6 –1.04 0.60 7 –1.20

Spline Interpolation Method Major: All Engineering Majors Authors: Autar Kaw, Jai Paul http://numericalmethods.eng.usf.edu Transforming Numerical Methods Education for STEM Undergraduates http://numericalmethods.eng.usf.edu

Spline Method of Interpolation http://numericalmethods.eng.usf.edu

Why Splines ? http://numericalmethods.eng.usf.edu

Why Splines ? Figure : Higher order polynomial interpolation is a bad idea http://numericalmethods.eng.usf.edu

Linear Interpolation http://numericalmethods.eng.usf.edu

Linear Interpolation (contd) http://numericalmethods.eng.usf.edu

Example The upward velocity of a rocket is given as a function of time in Table 1. Find the velocity at t=16 seconds using linear splines. Table Velocity as a function of time (s) (m/s) 10 227.04 15 362.78 20 517.35 22.5 602.97 30 901.67 Figure. Velocity vs. time data for the rocket example http://numericalmethods.eng.usf.edu

Linear Interpolation http://numericalmethods.eng.usf.edu

Quadratic Interpolation http://numericalmethods.eng.usf.edu

Quadratic Interpolation (contd) http://numericalmethods.eng.usf.edu

Quadratic Splines (contd) http://numericalmethods.eng.usf.edu

Quadratic Splines (contd) http://numericalmethods.eng.usf.edu

Quadratic Splines (contd) http://numericalmethods.eng.usf.edu

Quadratic Spline Interpolation Part 1 of 2 http://numericalmethods.eng.usf.edu

Quadratic Spline Example The upward velocity of a rocket is given as a function of time. Using quadratic splines Find the velocity at t=16 seconds Find the acceleration at t=16 seconds Find the distance covered between t=11 and t=16 seconds t v(t) s m/s 10 227.04 15 362.78 20 517.35 22.5 602.97 30 901.67

Data and Plot t v(t) s m/s 10 227.04 15 362.78 20 517.35 22.5 602.97 10 227.04 15 362.78 20 517.35 22.5 602.97 30 901.67 23

Solution Let us set up the equations

Each Spline Goes Through Two Consecutive Data Points

Each Spline Goes Through Two Consecutive Data Points v(t) s m/s 10 227.04 15 362.78 20 517.35 22.5 602.97 30 901.67

Derivatives are Continuous at Interior Data Points

Derivatives are continuous at Interior Data Points At t=10 At t=15 At t=20 At t=22.5

Last Equation

Final Set of Equations

Coefficients of Spline ai bi ci 1 22.704 2 0.8888 4.928 88.88 3 -0.1356 35.66 -141.61 4 1.6048 -33.956 554.55 5 0.20889 28.86 -152.13

END http://numericalmethods.eng.usf.edu

Quadratic Spline Interpolation Part 2 of 2 http://numericalmethods.eng.usf.edu 33

Final Solution

Velocity at a Particular Point a) Velocity at t=16

Acceleration from Velocity Profile b) Acceleration at t=16

Acceleration from Velocity Profile The quadratic spline valid at t=16 is given by ,

Distance from Velocity Profile c) Find the distance covered by the rocket from t=11s to t=16s. 38

Distance from Velocity Profile

END http://numericalmethods.eng.usf.edu

Find a Smooth Shortest Path for a Robot http://numericalmethods.eng.usf.edu

Points for Robot Path x y 2.00 7.2 4.5 7.1 5.25 6.0 7.81 5.0 9.20 3.5 10.60 Find the shortest but smooth path through consecutive data points

Polynomial Interpolant Path

Spline Interpolant Path

Compare Spline & Polynomial Interpolant Path Length of path Polynomial Interpolant=14.9 Spline Interpolant =12.9