Function: math-rwcomp-neg
math-rwcomp-neg is a byte-compiled function defined in
calc-rewr.el.gz.
Signature
(math-rwcomp-neg EXPR)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-rewr.el.gz
(defun math-rwcomp-neg (expr)
(if (memq (car-safe expr) '(* /))
(if (eq (car-safe (nth 1 expr)) 'var)
(list (car expr) (list 'neg (nth 1 expr)) (nth 2 expr))
(if (eq (car-safe (nth 2 expr)) 'var)
(list (car expr) (nth 1 expr) (list 'neg (nth 2 expr)))
(math-neg expr)))
(math-neg expr)))