function spline = bkfspmak(x,j,Theta) % % spline = bkfspmak(x,j,Theta) % % make the (Birkhoff) spline which represents the j-th derivative at x of the % error in Hf the Hermite interpolant to f at Theta a multiset of n points, as: % % D^j f(x) - D^j Hf(x) = integral spline(t)*D^n f(t) dt % % example: spline = bkfspmak(0.1,2,[0 0 0 1 1 1]) % % See also: bkfplt (which plots such a spline) % % S. Waldron October 1994 % n=length(Theta); % number of points in Theta r=n-length(find(Theta-x*ones(size(Theta)))); % r the multiplicity of x in Theta if j>=n, error('j must be less than the number of points in Theta'); end if j