changeset 101558:ab3d548d13f2

(calc-sel-expand-formula): Simplify expanded denominator.
author Jay Belanger <jay.p.belanger@gmail.com>
date Tue, 27 Jan 2009 05:12:28 +0000
parents 9b7874193899
children 3688f1456c9e
files lisp/calc/calc-sel.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calc/calc-sel.el	Tue Jan 27 05:10:08 2009 +0000
+++ b/lisp/calc/calc-sel.el	Tue Jan 27 05:12:28 2009 +0000
@@ -801,7 +801,8 @@
                              (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))