function y = sinx(x)

for k = 1:length(x)

    xk = x(k);

    if xk ~= 0   
        y(k) = sin(xk)/xk;
    else
        y(k)=1;
    end

end
