]> git.eshelyaron.com Git - emacs.git/commitdiff
(math-integrate-by-parts): Do a more careful test to see if equation
authorJay Belanger <jay.p.belanger@gmail.com>
Tue, 14 Feb 2006 21:39:26 +0000 (21:39 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Tue, 14 Feb 2006 21:39:26 +0000 (21:39 +0000)
can be solved.

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