function result = isOdd(x)
%isOdd return true if x is odd
%
% consumes: x, a number
% produces: result, a boolean (true if x is odd, 
%                              false if x is even)
%
% Examples:
%     >> isOdd(2)
%     ans = 
%             0
%     >> isOdd(7)
%     ans = 
%             1
%
% P. Conrad, for CISC106, sect 99, 09/25/2007

  if (mod(x,2)==0)
    result = false;
  else
    result = true;
  end; % if

  return;
end % function isOdd
    