% test invinterp code x = linspace(1,10,100)'; y = cos(pi*x); yo = -.2; invinterp1 xo1=xo; yo=-0.2; invinterp2 isequal(xo,xo1)