Last time | Next time |
Today:
You can run "danny.m" to verify that some of the commands are working.
I ask that you give it special attention: you are to write some octave code, and then use it to work several exercises. I need to see that you can actually code. It's a huge part of numerical analysis....
The board work for that story are here.
The board work for that story are here.
Zach's signature | |
Zach's signature, with the control points used to "guide" the set of Bezier curves which produce it. |
A cubic spline required to interpolate $n+1$ points has $n-1$ joints and $n$ pieces. It follows that the set of cubics has $4n$ coefficients. Requiring each cubic to pass through $2$ points gives $2n$ conditions on the coefficients. Requiring first derivative matching at the joints gives $n-1$ more conditions. Requiring second derivative matching at the joints gives an additional $n-1$ conditions for a grand total of $4n-2$ conditions. That leaves $2$ "free" coefficients. Mathematically speaking, we have a family of splines with two degrees of freedom. To find any specific spline, we need to enforce two more conditions on the coefficients. These conditions may include the first, second, or third derivative at two of the nodes, both the first and second derivative at a single node, or some other combination of two derivative requirements.
Here's another picture of how we might build one of these.