| GNU Scientific Library Reference Manual - Revised Second Edition (v1.8) by M. Galassi, J. Davies, J. Theiler, B. Gough, G. Jungman, M. Booth, F. Rossi Paperback (6"x9"), 636 pages, 60 figures ISBN 0954161734 RRP £24.99 ($39.99) |
4.6 Testing for Odd and Even Numbers
- Macro: GSL_IS_ODD (n)
- This macro evaluates to 1 if n is odd and 0 if n is even. The argument n must be of integer type.
- Macro: GSL_IS_EVEN (n)
- This macro is the opposite of
GSL_IS_ODD(n). It evaluates to 1 if n is even and 0 if n is odd. The argument n must be of integer type.
| ISBN 0954161734 | GNU Scientific Library Reference Manual - Revised Second Edition (v1.8) | See the print edition |