]> code.delx.au - gnu-emacs/blobdiff - lisp/calc/calcalg2.el
(ediff-diff-options): fixed the doc string
[gnu-emacs] / lisp / calc / calcalg2.el
index facb691c08b04c896fdf2439175215cc7b96f2fa..f71e58e223a67239f9d4ac67679a08b0022cb3b2 100644 (file)
                        (calcFunc-expand temp)
                      (setq v (list 'var 'PARTS math-cur-record)
                            temp (let (calc-next-why)
-                                  (math-solve-for (math-sub v temp) 0 v nil)))
-                     (and temp (not (integerp temp))
-                          (math-simplify-extended temp)))))
+                                   (math-simplify-extended
+                                    (math-solve-for (math-sub v temp) 0 v nil)))
+                            temp (if (and (eq (car-safe temp) '/) 
+                                          (math-zerop (nth 2 temp))) 
+                                     nil temp)))))
           (setcar (cdr math-cur-record) 'busy)))))
 
 ;;; This tries two different formulations, hoping the algebraic simplifier