I have a list of quantities with varying units (a short example list is shown below):
{Quantity[1, 1/("Millimoles" "Seconds")], Quantity[3, 1/(("Meters")^3 "Seconds")], Quantity[7, ("Meters")^3/("Seconds")]}
These units were produced by using Solve on equations with units. However, Solve spits out the base units of Meters^3 for volume, when I want Liters. Is there a way to convert every instance of meter^3 to liter in the list with a single function (or rule)?
A big problem I have run into is that the list contains some quantities with Meters^3, some with Meters^-3, and some with no volume units at all. I am not sure what units the output of Solve will give me either, but I just want to convert all Meters^3 and Meters^-3 to Liters.
The output I am hoping for is {Quantity[1, 1/("Millimoles" "Seconds")], Quantity[3/1000, 1/("Liters"*"Seconds")], Quantity[7000, ("Liters")/("Seconds")]}
{"LengthUnit", x_?(Mod[#, 3] == 0 &)} :> {"Liters", x/3}
$\endgroup$