# HG changeset patch # User Jay Belanger # Date 1193190700 0 # Node ID 819d86e241bc067a2c220bb2b01abe361c9a6692 # Parent 9a8400cb685cb0115ad5d2f13814ec740c1f5384 (math-simplify-units-quotient): Replace missing exponent. diff -r 9a8400cb685c -r 819d86e241bc lisp/calc/calc-units.el --- a/lisp/calc/calc-units.el Wed Oct 24 01:51:03 2007 +0000 +++ b/lisp/calc/calc-units.el Wed Oct 24 01:51:40 2007 +0000 @@ -1222,7 +1222,9 @@ (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))