(calc-sel-expand-formula): Simplify expanded denominator.
authorJay Belanger <jay.p.belanger@gmail.com>
Tue, 27 Jan 2009 05:12:28 +0000 (05:12 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Tue, 27 Jan 2009 05:12:28 +0000 (05:12 +0000)
lisp/calc/calc-sel.el

index 62debf5..42d6447 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))