diff options
| author | Jay Belanger | 2006-02-14 21:39:26 +0000 |
|---|---|---|
| committer | Jay Belanger | 2006-02-14 21:39:26 +0000 |
| commit | 63f7edace755ddb71ba842b55bafa98e55a2e768 (patch) | |
| tree | fddf2b89a265f76209e3c5f27cd02ae580c620df | |
| parent | eb90d8443cc32d5c6ec5bdff9ffa1ae392dc577b (diff) | |
| download | emacs-63f7edace755ddb71ba842b55bafa98e55a2e768.tar.gz emacs-63f7edace755ddb71ba842b55bafa98e55a2e768.zip | |
(math-integrate-by-parts): Do a more careful test to see if equation
can be solved.
| -rw-r--r-- | lisp/calc/calcalg2.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/calc/calcalg2.el b/lisp/calc/calcalg2.el index facb691c08b..f71e58e223a 100644 --- a/lisp/calc/calcalg2.el +++ b/lisp/calc/calcalg2.el | |||
| @@ -1253,9 +1253,11 @@ | |||
| 1253 | (calcFunc-expand temp) | 1253 | (calcFunc-expand temp) |
| 1254 | (setq v (list 'var 'PARTS math-cur-record) | 1254 | (setq v (list 'var 'PARTS math-cur-record) |
| 1255 | temp (let (calc-next-why) | 1255 | temp (let (calc-next-why) |
| 1256 | (math-solve-for (math-sub v temp) 0 v nil))) | 1256 | (math-simplify-extended |
| 1257 | (and temp (not (integerp temp)) | 1257 | (math-solve-for (math-sub v temp) 0 v nil))) |
| 1258 | (math-simplify-extended temp))))) | 1258 | temp (if (and (eq (car-safe temp) '/) |
| 1259 | (math-zerop (nth 2 temp))) | ||
| 1260 | nil temp))))) | ||
| 1259 | (setcar (cdr math-cur-record) 'busy))))) | 1261 | (setcar (cdr math-cur-record) 'busy))))) |
| 1260 | 1262 | ||
| 1261 | ;;; This tries two different formulations, hoping the algebraic simplifier | 1263 | ;;; This tries two different formulations, hoping the algebraic simplifier |