Unformatted text preview: 2.1.d . Implement a routine that constructs the interpolating cubic spline s ( x ) in terms of the linear combination of cubic B-splines and a routine that evaluates the resulting spline at any value x . You need only support boundary conditions of the type s ′ = f ′ ( x ) , s ′ n = f ′ ( x n ) in this code. You may restrict the x i to be uniformly separated for this code, i.e., h = x i-x i − 1 . 2.1.e . Apply each code with f ( x ) taken to be di±erent cubic polynomials, i.e., not just f ( x ) = x 3 , with the various boundary conditions and discuss the results. 2.1.f . Apply each code with various boundary conditions to f ( x ) = β 1 + αx 2 on [-1 , 1] with various choices of α and β . and discuss the results. 1...
View Full Document
- Spring '11
- Boundary conditions, B-spline, cubic spline