Function: math-constp

math-constp is an autoloaded and byte-compiled function defined in calc-misc.el.gz.

Signature

(math-constp A)

Source Code

;; Defined in /usr/src/emacs/lisp/calc/calc-misc.el.gz
;; True if A is a constant or vector of constants.  [P x] [Public]
;;;###autoload
(defun math-constp (a)
  (or (Math-scalarp a)
      (and (memq (car a) '(sdev intv mod vec))
	   (progn
	     (while (and (setq a (cdr a))
			 (or (Math-scalarp (car a))  ; optimization
			     (math-constp (car a)))))
	     (null a)))))