function jordan_matrix_test ( )

%*****************************************************************************80
%
%% jordan_matrix_test() tests jordan_matrix().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    22 March 2022
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../jordan_matrix' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'jordan_matrix_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  jordan_matrix() returns a random Jordan matrix.\n' );

  for i = 1 : 10
    n = randi ( [ 3, 8 ] );
    fprintf ( 1, '\n' );
    fprintf ( 1, '  Random Jordan matrix %d will have order n = %d\n', i, n );
    A = jordan_matrix_random ( n );
    fprintf ( 1, '\n' );
    disp ( A );
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'jordan_matrix_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  timestamp ( );

  rmpath ( '../jordan_matrix' );

  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the current YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  t = now;
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end

