I'm trying to reproduce the shape of an airfoil's camber line using the leading edge angle, the trailing edge angle, the chord and the max camber value.
I cannot use a spline because it overshoots the "max camber".
I cannot use 'pchip', a piecewise cubic Hermitian interpolation because I can't clamp ends.
I cannot use 'csape' as well because it is a cubic spline interpolation (and therefore overshoots)
I'm playing around to generate a fifth order function, but I fear it is a futile endeavor.
pchip()except in the first and last intervals, and build an extension that performs cubic Hermite interpolation at the ends, using your specified derivatives at one end and the Fritsch-Carlson derivative estimates at the other. Entirely your call, of course. – J. M. ain't a mathematician Jan 31 '12 at 19:38