function value = sincn_fun ( x )

%*****************************************************************************80
%
%% sincn_fun() evaluates the normalized sinc() function.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    26 March 2025
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real x: the argument of the function.
%
%  Output:
%
%    real value: the value of the function.
%
  value = zeros ( size ( x ) );

  nz = find ( x ~= 0.0 );
  zr = find ( x == 0.0 );

  value(nz) = sin ( pi * x(nz) ) ./ ( pi * x(nz) );
  value(zr) = 1.0;

  return
end

