aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/calc
diff options
context:
space:
mode:
authorJay Belanger <[email protected]>2009-01-27 05:12:28 +0000
committerJay Belanger <[email protected]>2009-01-27 05:12:28 +0000
commit170bc4f7d83b8bce7eddcf1f3c769776b1d6986d (patch)
treeadec08996e9854bc8f075af7eab276115b71f897 /lisp/calc
parent7179ce7b35a4e28d4bf6e49508631d074835c9d2 (diff)
(calc-sel-expand-formula): Simplify expanded denominator.
Diffstat (limited to 'lisp/calc')
-rw-r--r--lisp/calc/calc-sel.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/calc/calc-sel.el b/lisp/calc/calc-sel.el
index 62debf5d1e..42d6447544 100644
--- a/lisp/calc/calc-sel.el
+++ b/lisp/calc/calc-sel.el
@@ -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))