function diophantine_3d_positive_test ( )

%*****************************************************************************80
%
%% diophantine_3d_positive_test tests diophantine_3d_positive.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 May 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'diophantine_3d_positive_test\n' );
  fprintf ( 1, '  diophantine_3d_positive returns the positive solutions\n' );
  fprintf ( 1, '  of a Diophantine equation in three variables.\n' );

  a = [ 6; 15; 10 ];
  b = 60;
  fprintf ( 1, '\n' );
  diophantine_equation_print ( a, b );
  x = diophantine_3d_positive ( a, b );
  diophantine_solution_print ( a, b, x );
  
  a = [ 5; 3; 7 ];
  b = 24;
  fprintf ( 1, '\n' );
  diophantine_equation_print ( a, b );
  x = diophantine_3d_positive ( a, b );
  diophantine_solution_print ( a, b, x );

  a = [ 2; 4; 5 ];
  b = 80;
  fprintf ( 1, '\n' );
  diophantine_equation_print ( a, b );
  x = diophantine_3d_positive ( a, b );
  diophantine_solution_print ( a, b, x );

  a = [ 4; 5; 9 ];
  b = 80;
  fprintf ( 1, '\n' );
  diophantine_equation_print ( a, b );
  x = diophantine_3d_positive ( a, b );
  diophantine_solution_print ( a, b, x );

  a = [ 12; 9; 7 ];
  b = 60;
  fprintf ( 1, '\n' );
  diophantine_equation_print ( a, b );
  x = diophantine_3d_positive ( a, b );
  diophantine_solution_print ( a, b, x );

  a = [ 4; 6; 10 ];
  b = 100;
  fprintf ( 1, '\n' );
  diophantine_equation_print ( a, b );
  x = diophantine_3d_positive ( a, b );
  diophantine_solution_print ( a, b, x );

  return
end

