function mean = fisk_mean ( a, b, c )

%*****************************************************************************80
%
%% fisk_mean() returns the mean of the Fisk PDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    11 January 2021
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real A, B, C, the parameters of the PDF.
%    0.0 < B,
%    0.0 < C.
%
%  Output:
%
%    real MEAN, the mean of the PDF.
%
  if ( c <= 1.0 )
    fprintf ( 1, '\n' );
    fprintf ( 1, 'FISK_MEAN - Fatal error!\n' );
    fprintf ( 1, '  No mean defined for C <= 1.0\n' );
    error ( 'FISK_MEAN - Fatal error!' );
  end

  mean = a + pi * ( b / c ) * csc ( pi / c );

  return
end
