function volume = sphere_imp_volume_3d ( r )

%*****************************************************************************80
%
%% sphere_imp_volume_3d() computes the volume of an implicit sphere in 3D.
%
%  Discussion:
%
%    An implicit sphere in 3D satisfies the equation:
%
%      sum ( ( P(1:DIM_NUM) - CENTER(1:DIM_NUM) )^2 ) = R^2
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    28 January 2005
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real R, the radius of the sphere.
%
%  Output:
%
%    real VOLUME, the volume of the sphere.
%
  volume = ( 4.0 / 3.0 ) * pi * r * r * r;

  return
end
