function [ y ] = sinOverX( x )
%SINOVERX Compute the continuous extension of 3 sin(x) / x.
% This function is undefined at x = 0, but from L'Hopital's rule its limit
% as x approaches 0 is 3, and so that value can be substituted for a
% calculated value near 0.

if -1e-10 < x && x < 1e-10
    y = 3;
else
    y = 3 * sin(x) / x;
end

end
