sinc function in scilab
The inbuilt sinc scilab not giving correct result. Check my function.
function [y]=sinc_new(x)
i=find(x==0);
x(i)= 1; // don't need this is /0 warning is off
y = sin(%pi*x)./(%pi*x);
y(i) = 1;
endfunction