In Mathematica numerical terms collect when their variables are equal.
.2 "SERC" + .7 "SERC"
(* 0.9 "SERC" *)
However, numerical Quantity
objects do not collect.
Quantity[.2, "Megawatts"] "SERC" + Quantity[.7, "Megawatts"] "SERC"
(* "SERC" (Quantity[0.2, "Megawatts"]) + "SERC" (Quantity[0.7, "Megawatts"]) *)
I would expect these to collect into Quantity[.9, "Megawatts"] "SERC"
but they do not. How can I make Quantity
objects collect? My understanding is that they should collect in this instance.