diff options
| author | Jay Belanger | 2004-11-25 05:51:40 +0000 |
|---|---|---|
| committer | Jay Belanger | 2004-11-25 05:51:40 +0000 |
| commit | 885e6671fc6045c0723e9c65e1e8288142bbeb80 (patch) | |
| tree | ca33e94c6e9aecd42f8eda89231e32e1c37bc9c5 | |
| parent | 7092c5e89c51bbae72ab3419aef6b50464c5a6a9 (diff) | |
| download | emacs-885e6671fc6045c0723e9c65e1e8288142bbeb80.tar.gz emacs-885e6671fc6045c0723e9c65e1e8288142bbeb80.zip | |
Added comment.
(math-polynomial-base): Replace variable mpb-top-expr by
math-poly-base-top-expr.
| -rw-r--r-- | lisp/calc/calc-alg.el | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/calc/calc-alg.el b/lisp/calc/calc-alg.el index d64e7d7aac1..cbf1dfbe79b 100644 --- a/lisp/calc/calc-alg.el +++ b/lisp/calc/calc-alg.el | |||
| @@ -1587,14 +1587,18 @@ | |||
| 1587 | (defvar math-poly-base-const-ok) | 1587 | (defvar math-poly-base-const-ok) |
| 1588 | (defvar math-poly-base-pred) | 1588 | (defvar math-poly-base-pred) |
| 1589 | 1589 | ||
| 1590 | (defun math-polynomial-base (mpb-top-expr &optional math-poly-base-pred) | 1590 | ;; The variable math-poly-base-top-expr is local to math-polynomial-base, |
| 1591 | ;; but is used by math-polynomial-p1 in calc-poly.el, which is called | ||
| 1592 | ;; by math-polynomial-base. | ||
| 1593 | |||
| 1594 | (defun math-polynomial-base (math-poly-base-top-expr &optional math-poly-base-pred) | ||
| 1591 | (or math-poly-base-pred | 1595 | (or math-poly-base-pred |
| 1592 | (setq math-poly-base-pred (function (lambda (base) (math-polynomial-p | 1596 | (setq math-poly-base-pred (function (lambda (base) (math-polynomial-p |
| 1593 | mpb-top-expr base))))) | 1597 | math-poly-base-top-expr base))))) |
| 1594 | (or (let ((math-poly-base-const-ok nil)) | 1598 | (or (let ((math-poly-base-const-ok nil)) |
| 1595 | (math-polynomial-base-rec mpb-top-expr)) | 1599 | (math-polynomial-base-rec math-poly-base-top-expr)) |
| 1596 | (let ((math-poly-base-const-ok t)) | 1600 | (let ((math-poly-base-const-ok t)) |
| 1597 | (math-polynomial-base-rec mpb-top-expr)))) | 1601 | (math-polynomial-base-rec math-poly-base-top-expr)))) |
| 1598 | 1602 | ||
| 1599 | (defun math-polynomial-base-rec (mpb-expr) | 1603 | (defun math-polynomial-base-rec (mpb-expr) |
| 1600 | (and (not (Math-objvecp mpb-expr)) | 1604 | (and (not (Math-objvecp mpb-expr)) |