function variance = bernoulli_variance ( a )

%*****************************************************************************80
%
%% bernoulli_variance() returns the variance of the Bernoulli PDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    02 September 2004
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real A, the probability of success on one trial.
%    0.0 <= A <= 1.0.
%
%  Output:
%
%    real VARIANCE, the variance of the PDF.
%
  variance = a * ( 1.0 - a );

  return
end
