# HG changeset patch # User Jay Belanger # Date 1233033148 0 # Node ID ab3d548d13f24f8d03a2d8a2ba804c043855dd28 # Parent 9b7874193899dff6129df27cc6b5a1e4b494caa6 (calc-sel-expand-formula): Simplify expanded denominator. diff -r 9b7874193899 -r ab3d548d13f2 lisp/calc/calc-sel.el --- 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))