Function: math-expr-subst-rec
math-expr-subst-rec is a byte-compiled function defined in
calc-alg.el.gz.
Signature
(math-expr-subst-rec EXPR)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-alg.el.gz
(defun math-expr-subst-rec (expr)
(cond ((equal expr math-expr-subst-old) math-expr-subst-new)
((Math-primp expr) expr)
((memq (car expr) '(calcFunc-deriv
calcFunc-tderiv))
(if (= (length expr) 2)
(if (equal (nth 1 expr) math-expr-subst-old)
(append expr (list math-expr-subst-new))
expr)
(list (car expr) (nth 1 expr)
(math-expr-subst-rec (nth 2 expr)))))
(t
(cons (car expr)
(mapcar #'math-expr-subst-rec (cdr expr))))))