function f = sawtooth_driver ( t )

%*****************************************************************************80
%
%% sawtooth_driver() returns the driving term for the sawtooth ODE.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    26 April 2021
%
%  Author:
%
%    John Burkardt
% 
%  Input:
%
%    real T, the current time.
%
%  Output:
%
%    real F, the value of the driver function.
%
  [ omega, t0, y0, tstop ] = sawtooth_parameters ( );

  f = mod ( t + omega * pi, 2.0 * omega * pi ) - omega * pi;

  return
end

