Function: math-expr-weight
math-expr-weight is an autoloaded and byte-compiled function defined
in calc-alg.el.gz.
Signature
(math-expr-weight EXPR)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-alg.el.gz
;;; Various measures of the size of an expression.
(defun math-expr-weight (expr)
(if (Math-primp expr)
1
(let ((w 1))
(while (setq expr (cdr expr))
(setq w (+ w (math-expr-weight (car expr)))))
w)))