% The RL circuit differential equation function
%
% -----------------------------------------------------------------------------------
%
% (C) 2017, Krzysztof Sozanski, Digital Signal Processing in Power Electronics Control 
% Circuits, second edition, Springer-Verlag, London, 2017. 
% 
% -----------------------------------------------------------------------------------
%
function dy = diff_RL(t,y)
global E2 R L tau
dy = E2/L - y/tau;
end
