Function: math-factor-contains
math-factor-contains is an autoloaded and byte-compiled function
defined in calc-poly.el.gz.
Signature
(math-factor-contains X A)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-poly.el.gz
(defun math-factor-contains (x a)
(if (equal x a)
1
(if (memq (car-safe x) '(+ - * / neg))
(let ((sum 0))
(while (setq x (cdr x))
(setq sum (+ sum (math-factor-contains (car x) a))))
sum)
(if (and (eq (car-safe x) '^)
(natnump (nth 2 x)))
(* (math-factor-contains (nth 1 x) a) (nth 2 x))
0))))