function y = shm_exact ( t )

%*****************************************************************************80
%
%% shm_exact() evaluates the exact solution of the SHM ODE.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    30 April 2021
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real T(:): the evaluation times.
%
%  Output:
%
%    real Y(:,2): the exact solution values.
%
  n = size ( t, 1 );

  y = zeros ( n, 2 );

  y(:,1) = sin ( t );
  y(:,2) = cos ( t );

  return
end


