Why Splines 1 lmethods eng usf edu http

  • Slides: 18
Download presentation
Why Splines ? 1 lmethods. eng. usf. edu http: //numerica

Why Splines ? 1 lmethods. eng. usf. edu http: //numerica

Why Splines ? 2 Figure : Higher order polynomial interpolation is a bad ideahttp:

Why Splines ? 2 Figure : Higher order polynomial interpolation is a bad ideahttp: //numerica lmethods. eng. usf. edu

The centroid example 3 lmethods. eng. usf. edu http: //numerica

The centroid example 3 lmethods. eng. usf. edu http: //numerica

The centroid example 4 lmethods. eng. usf. edu http: //numerica

The centroid example 4 lmethods. eng. usf. edu http: //numerica

The centroid example 5 lmethods. eng. usf. edu http: //numerica

The centroid example 5 lmethods. eng. usf. edu http: //numerica

Quadratic Spline Example The upward velocity of a rocket is given as a function

Quadratic Spline Example The upward velocity of a rocket is given as a function of time. Using quadratic splines a) Find the velocity at t=16 seconds b) Find the acceleration at t=16 seconds c) Find the distance covered between t=11 and t=16 seconds Table Velocity as a function of time (s) 0 10 15 20 22. 5 30 6 (m/s) 0 227. 04 362. 78 517. 35 602. 97 901. 67 Figure. Velocity vs. time data for the rocket example lmethods. eng. usf. edu http: //numerica

Solution Let us set up the equations 7 lmethods. eng. usf. edu http: //numerica

Solution Let us set up the equations 7 lmethods. eng. usf. edu http: //numerica

Each Spline Goes Through Two Consecutive Data Points 8 lmethods. eng. usf. edu http:

Each Spline Goes Through Two Consecutive Data Points 8 lmethods. eng. usf. edu http: //numerica

Each Spline Goes Through Two Consecutive Data Points 9 t s 0 10 v(t)

Each Spline Goes Through Two Consecutive Data Points 9 t s 0 10 v(t) m/s 0 227. 04 15 20 22. 5 30 362. 78 517. 35 602. 97 901. 67 lmethods. eng. usf. edu http: //numerica

Derivatives are Continuous at Interior Data Points 10 lmethods. eng. usf. edu http: //numerica

Derivatives are Continuous at Interior Data Points 10 lmethods. eng. usf. edu http: //numerica

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

Derivatives are continuous at Interior Data Points At t=10 At t=15 At t=20 At t=22. 5 11 lmethods. eng. usf. edu http: //numerica

Last Equation 12 lmethods. eng. usf. edu http: //numerica

Last Equation 12 lmethods. eng. usf. edu http: //numerica

Final Set of Equations 13 lmethods. eng. usf. edu http: //numerica

Final Set of Equations 13 lmethods. eng. usf. edu http: //numerica

Coefficients of Spline 14 i ai bi ci 1 0 22. 704 0 2

Coefficients of Spline 14 i ai bi ci 1 0 22. 704 0 2 0. 8888 4. 928 88. 88 3 − 0. 1356 35. 66 − 141. 61 4 1. 6048 5 0. 20889 − 33. 956 554. 55 28. 86 − 152. 13 lmethods. eng. usf. edu http: //numerica

Final Solution 15 lmethods. eng. usf. edu http: //numerica

Final Solution 15 lmethods. eng. usf. edu http: //numerica

Velocity at a Particular Point a) Velocity at t=16 16 lmethods. eng. usf. edu

Velocity at a Particular Point a) Velocity at t=16 16 lmethods. eng. usf. edu http: //numerica

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

Acceleration from Velocity Profile b) The quadratic spline valid at t=16 is given by 17 lmethods. eng. usf. edu http: //numerica

Distance from Velocity Profile c) Find the distance covered by the rocket from t=11

Distance from Velocity Profile c) Find the distance covered by the rocket from t=11 s to t=16 s. 18 lmethods. eng. usf. edu http: //numerica