(math-simplify-units-quotient): Replace missing exponent.

This commit is contained in:
Jay Belanger 2007-10-24 01:51:40 +00:00
parent eb3d6c677b
commit 0317ca7890

View file

@ -1222,7 +1222,9 @@ If EXPR is nil, return nil."
(and un ud
(if (and (equal (nth 4 un) (nth 4 ud))
(eq pow1 pow2))
(math-to-standard-units (list '/ n d) nil)
(if (eq pow1 1)
(math-to-standard-units (list '/ n d) nil)
(list '^ (math-to-standard-units (list '/ n d) nil) pow1))
(let (ud1)
(setq un (nth 4 un)
ud (nth 4 ud))