Function: math-known-evenp
math-known-evenp is an autoloaded and byte-compiled function defined
in calc-arith.el.gz.
Signature
(math-known-evenp A)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-arith.el.gz
(defun math-known-evenp (a)
(cond ((Math-integerp a)
(math-evenp a))
((Math-messy-integerp a)
(or (> (nth 2 a) 0)
(math-evenp (math-trunc a))))
((eq (car a) '*)
(if (math-known-evenp (nth 1 a))
(math-known-num-integerp (nth 2 a))
(if (math-known-num-integerp (nth 1 a))
(math-known-evenp (nth 2 a)))))
((memq (car a) '(+ -))
(or (and (math-known-evenp (nth 1 a))
(math-known-evenp (nth 2 a)))
(and (math-known-oddp (nth 1 a))
(math-known-oddp (nth 2 a)))))
((eq (car a) 'neg)
(math-known-evenp (nth 1 a)))))