function p = pendulum_period ( )

%*****************************************************************************80
%
%% pendulum_period() returns the period for pendulum_ode().
%
%  Discussion:
%
%    The period is the smallest time interval P such that, for any T and X,
%      Y(T,X) = Y(T+P,X)
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    03 May 2021
%
%  Author:
%
%    John Burkardt
%
%  Output:
%
%    real P: the period of the pendulum.
%
  [ g, l, m, t0, y0, tstop ] = pendulum_parameters ( );

  p = 2.0 * pi * sqrt ( l / g );

  return
end

