function h = exact_test02 ( x_num, x, t )

%*****************************************************************************80
%
%% exact_test02() evaluates the exact solution for problem 2.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    30 January 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer X_NUM, the number of nodes.
%
%    real X(X_NUM,1), the node coordinates.
%
%    real T, the initial time.
%
%  Output:
%
%    real H(X_NUM,1), the exact solution at X and T.
%
  k = k_test02 ( );
  h(1:x_num,1) = exp ( - t ) .* sin ( sqrt ( k ) * x );

  return
end
