Function: math-negp
math-negp is an autoloaded and byte-compiled function defined in
calc-misc.el.gz.
Signature
(math-negp A)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-misc.el.gz
;; True if A is real and negative. [P n] [Public]
;;;###autoload
(defun math-negp (a)
(if (consp a)
(cond ((memq (car a) '(float frac))
(Math-integer-negp (nth 1 a)))
((eq (car a) 'hms)
(if (math-zerop (nth 1 a))
(if (math-zerop (nth 2 a))
(math-negp (nth 3 a))
(math-negp (nth 2 a)))
(math-negp (nth 1 a))))
((eq (car a) 'date)
(math-negp (nth 1 a)))
((eq (car a) 'intv)
(or (math-negp (nth 3 a))
(and (math-zerop (nth 3 a))
(memq (nth 1 a) '(0 2)))))
((equal a '(neg (var inf var-inf))) t))
(< a 0)))