Download OddQexpr] gives True if expr is an odd integer, and False otherwise.

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Factorization wikipedia , lookup

Transcript
OddQ
OddQ expr] gives True if expr is an odd integer, and False otherwise.
OddQ expr] returns False unless expr is manifestly an odd integer (i.e. has head Integer, and is odd). You can use
OddQ x] = True to override the normal operation of OddQ, and effectively define x to be an odd integer. See pages 230
and 326. See also: IntegerQ, EvenQ, TrueQ.
Web sample page from The Mathematica Book, Second Edition, by Stephen Wolfram, published by Addison-Wesley Publishing Company (hardcover ISBN 0-201-51502-4; softcover ISBN 0-201-51507-5). To order Mathematica or this book contact Wolfram Research: [email protected];
http://www.wolfram.com/; 1-800-441-6284.
 1991 Wolfram Research, Inc.
Permission is hereby granted for web users to make one paper copy of this page for their personal use. Further reproduction, or any copying of machine-readable files (including this one) to any server computer, is strictly prohibited.