function variance = fisk_variance ( a, b, c )

%*****************************************************************************80
%
%% fisk_variance() returns the variance 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 VARIANCE, the variance of the PDF.
%
  if ( c <= 2.0 )
    fprintf ( 1, '\n' );
    fprintf ( 1, 'FISK_VARIANCE - Fatal error!\n' );
    fprintf ( 1, '  No variance defined for C <= 2.0\n' );
    error ( 'FISK_VARIANCE - Fatal error!' );
  end

  g = pi / c;

  variance = b^2 * ( 2.0 * g * csc ( 2.0 * g ) - ( g * csc ( g ) )^2 );

  return
end
