diff options
| author | Jay Belanger | 2007-10-24 01:51:40 +0000 |
|---|---|---|
| committer | Jay Belanger | 2007-10-24 01:51:40 +0000 |
| commit | 0317ca7890ac8d703b0e167454fbee5cd0dbf696 (patch) | |
| tree | dc839b9f50183ee1513d3ee92dbb599b1c67474c | |
| parent | eb3d6c677b7bada9022bf4ae0e46407755c709e9 (diff) | |
| download | emacs-0317ca7890ac8d703b0e167454fbee5cd0dbf696.tar.gz emacs-0317ca7890ac8d703b0e167454fbee5cd0dbf696.zip | |
(math-simplify-units-quotient): Replace missing exponent.
| -rw-r--r-- | lisp/calc/calc-units.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/calc/calc-units.el b/lisp/calc/calc-units.el index 839bac77581..a7c4b20e30d 100644 --- a/lisp/calc/calc-units.el +++ b/lisp/calc/calc-units.el | |||
| @@ -1222,7 +1222,9 @@ If EXPR is nil, return nil." | |||
| 1222 | (and un ud | 1222 | (and un ud |
| 1223 | (if (and (equal (nth 4 un) (nth 4 ud)) | 1223 | (if (and (equal (nth 4 un) (nth 4 ud)) |
| 1224 | (eq pow1 pow2)) | 1224 | (eq pow1 pow2)) |
| 1225 | (math-to-standard-units (list '/ n d) nil) | 1225 | (if (eq pow1 1) |
| 1226 | (math-to-standard-units (list '/ n d) nil) | ||
| 1227 | (list '^ (math-to-standard-units (list '/ n d) nil) pow1)) | ||
| 1226 | (let (ud1) | 1228 | (let (ud1) |
| 1227 | (setq un (nth 4 un) | 1229 | (setq un (nth 4 un) |
| 1228 | ud (nth 4 ud)) | 1230 | ud (nth 4 ud)) |