function student_cdf_test ( )

%*****************************************************************************80
%
%% student_cdf_test() tests student_cdf().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    30 March 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'STUDENT_CDF_TEST():\n' );
  fprintf ( 1, '  STUDENT_CDF() evaluates the Student CDF.\n' );
  fprintf ( 1, '  STUDENT_PDF() evaluates the Student PDF.\n' );

  x = 2.447;

  a = 0.5;
  b = 2.0;
  c = 6.0;

  check = student_check ( a, b, c );

  if ( ~ check );
    fprintf ( 1, '\n' );
    fprintf ( 1, 'STUDENT_CDF_TEST(): Fatal error!\n' );
    fprintf ( 1, '  The parameters are not legal.\n' );
    return
  end

  pdf = student_pdf ( x, a, b, c );

  cdf = student_cdf ( x, a, b, c );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  PDF argument X =    %14g\n', x );
  fprintf ( 1, '  PDF parameter A =   %14g\n', a );
  fprintf ( 1, '  PDF parameter B =   %14g\n', b );
  fprintf ( 1, '  PDF parameter C =   %14g\n', c );
  fprintf ( 1, '  PDF value =         %14g\n', pdf );
  fprintf ( 1, '  CDF value =         %14g\n', cdf );

  return
end
