]> code.delx.au - gnu-emacs/blobdiff - lisp/calc/calc-sel.el
* view.el (view-recenter): Allow recenter to compute window height
[gnu-emacs] / lisp / calc / calc-sel.el
index 62debf5d1e27e5ea3fc3343a4e535c47fe6c493b..42d64475447e53145213ea7c61e97c6ba5bf466f 100644 (file)
                              (unless arg
                                (setq rhs (math-expand-term rhs))))))
                   (if (and arg (not no-simp))
-                      (setq rhs (calcFunc-expand rhs (unless (= arg 0) arg))))
+                      (setq rhs (math-simplify
+                                 (calcFunc-expand rhs (unless (= arg 0) arg)))))
                  (setq alg (calc-encase-atoms
                             (calc-normalize (list func lhs rhs)))))
              (setq rhs (list (if divide '* '/) sel alg))