next up previous contents index
suivant: Test of oddness : monter: Integers (and Gaussian Integers) précédent: Euclidean quotient and euclidean   Table des matières   Index


Test of evenness : even

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



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