function variance = triangular_variance ( a, b )

%*****************************************************************************80
%
%% triangular_variance() returns the variance of the Triangular PDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    22 September 2004
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real A, B, the parameters of the PDF.
%    A < B.
%
%  Output:
%
%    real VARIANCE, the variance of the PDF.
%
  variance = ( b - a )^2 / 24.0;

  return
end
