function val = mymax2_bad(x, y) 
% mymax2_bad Demonstration routine to illustrate value-return mechanism [PHYS210-DEMO]
% 
%  This implementation of 2-argument max function is INCORRECT.  It does NOT
%  assign the output argument, val, prior to returning.  
%
%  See mymax2_good for a correct implementation.
   if x > y
      x
   else
      y
   end
end
