function variance = binomial_variance ( a, b )

%*****************************************************************************80
%
%% binomial_variance() returns the variance of the Binomial PDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    03 September 2004
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer A, the number of trials.
%    1 <= A.
%
%    real B, the probability of success on one trial.
%    0.0 <= B <= 1.0.
%
%  Output:
%
%    real VARIANCE, the variance of the PDF.
%
  variance = a * b * ( 1.0 - b );

  return
end
