# hw9 - Rather than using the pchip method of ﬁnding the...

This preview shows pages 1–2. Sign up to view the full content.

COT 4501 Homework 9, Fall 2009 Assigned Thurs Nov 12, Due Thurs Nov 19 See the HW Policy at: http://www.cise.uﬂ.edu/ davis/cot4501 Review problems: R7.15 R7.16 R7.17 R7.18 R7.19 R8.2 R8.3 Exercises: E8.1 Computer problems: In this project, you will write your own cubic spline method. Start with Cleve Moler’s pchiptx , which you can download from: http://www.mathworks.com/moler/ncm/pchiptx.m or the entire NCM package from: http://www.mathworks.com/moler/chapters.html You can read more about Moler’s pchiptx at: 1

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
http://www.mathworks.com/moler/interp.pdf
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Rather than using the pchip method of ﬁnding the slopes, compute the slope d k as the arithmetic mean (average) of δ k-1 and δ k . Do this even where the δ ’s diﬀer in sign. For the endpoints, use d 1 = δ 1 and d n = δ n-1 . Create some data to interpolate, and compare and contrast the three methods: splinetx , pchiptx , and your new method. Try several data sets, and try to ﬁnd one the points out any ﬂaws in the method you develop. Also use the one I used in class: y = [0 0 0 0 0 1 1 1 1 1] x = 1:10 2...
View Full Document

{[ snackBarMessage ]}

### Page1 / 2

hw9 - Rather than using the pchip method of ﬁnding the...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online