Function: math-div-zero
math-div-zero is an autoloaded and byte-compiled function defined in
calc-arith.el.gz.
Signature
(math-div-zero A B)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-arith.el.gz
(defun math-div-zero (a b)
(if (math-known-matrixp b)
(if (math-vectorp b)
(math-map-vec-2 'math-div a b)
(math-mimic-ident 0 b))
(if (equal b '(var nan var-nan))
b
(if (and (eq (car-safe b) 'intv) (math-intv-constp b)
(not (math-posp b)) (not (math-negp b)))
(if calc-infinite-mode
(list 'intv 3
(if (and (math-zerop (nth 2 b))
(memq calc-infinite-mode '(1 -1)))
(nth 2 b) '(neg (var inf var-inf)))
(if (and (math-zerop (nth 3 b))
(memq calc-infinite-mode '(1 -1)))
(nth 3 b) '(var inf var-inf)))
(math-reject-arg b "*Division by zero"))
a))))