Add construct() and its tests.
[octave.git] / misc / odd.m
1 function odd = odd(integer_n)
2 ## Returns true if its argument is odd; false otherwise.
3 ##
4 ## INPUTS:
5 ##
6 ## * ``integer_n`` - The integer whose parity you're determining.
7 ##
8 ##
9 ## OUTPUTS:
10 ##
11 ## * ``odd`` - True if `integer_n` is odd, false otherwise.
12 ##
13
14 odd = !even(integer_n);
15 end