Arithmetic methods compute scalar-dimension from arguments
authorLiam M. Healy <lhealy@common-lisp.net>
Sat, 8 Oct 2011 15:23:01 +0000 (11:23 -0400)
committerLiam M. Healy <lhealy@common-lisp.net>
Sat, 8 Oct 2011 15:23:01 +0000 (11:23 -0400)
commit35b135179306fad204bbc964f9330fcccb03ea11
tree30cc0ea45816cf36b6b629b1aa53d6eeb2b0803c
parentc01609e04a22a873196a646fe4e5a61ea549794e
Arithmetic methods compute scalar-dimension from arguments

Arithmetic methods compute scalar-dimension from arguments instead of
(incorrectly) assuming that it is T.  This fixes an observed error in
multiplication (* #_4.0_km #m(2.0d0 #_3.0_km)).
physical-quantities/arithmetic.lisp
physical-quantities/units.lisp