next up previous contents index
suivant: Test of pseudo-primality : monter: Integers (and Gaussian Integers) précédent: Test of evenness :   Table des matières   Index


Test of oddness : odd

odd takes as argument an integer n.
odd returns 1 if n is odd and returns 0 if n is even.
Input :
odd(148)
Output :
0
Input :
odd(149)
Output :
1



giac documentation written by Renée De Graeve and Bernard Parisse