function diophantine_test03 ( )

%*****************************************************************************80
%
%% diophantine_test03() tests diophantine on a three-variable problem.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 March 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'diophantine_test03()\n' );
  fprintf ( 1, '  Solve one Diophantine equation in three variables.\n' );

  a = [ 12; 9; 7 ];
  b = 60;
  diophantine_equation_print ( a, b );

  [ d, v, B ] = diophantine_basis ( a, b );

  diophantine_basis_print ( d, v, B );

  r = diophantine_residual ( a, b, v );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  The residual for the particular solution with c=0 is %d\n', r );

  return
end

