function variance = cosine_variance ( a, b )

%*****************************************************************************80
%
%% cosine_variance() returns the variance of the Cosine PDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    06 September 2004
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real A, B, the parameters of the PDF.
%    0.0 < B.
%
%  Output:
%
%    real VARIANCE, the variance of the PDF.
%
  variance = ( pi * pi / 3.0 - 2.0 ) * b * b;

  return
end
