function california_migration_test ( )

%*****************************************************************************80
%
%% california_migration_test() tests california_migration().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    20 January 2025
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../california_migration' );

  timestamp ( );

  fprintf ( 1, '\n' )
  fprintf ( 1, 'california_migration_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Suppose that every year, 30%% of California moves out\n' );
  fprintf ( 1, '  and 10%% of the US moves into California.\n' );
  fprintf ( 1, '  Suppose in 1960 California had 16,000,000 residents,\n' );
  fprintf ( 1, '  and the rest of the US had 164,000,000 residents.\n' );
  fprintf ( 1, '  Predict the California population for the next 20 years.\n' );

  california_migration_scalar_test ( );
  california_migration_matrix_test ( );
  california_migration_matrix_backwards ( );
  california_migration_matrix_eigenvalues ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'california_migration_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  timestamp ( );

  rmpath ( '../california_migration' );

  return
end
function timestamp ( )

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

  return
end

