function yp = example2(t,y)
% Right-hand side function for Example 2 from the class lecture.
%
% Note that the independent variable (t in this case) must be listed first
% in the input argument list.
%
% The function must be written so that it will work when t and y are vectors.
yp = t*y;