Many of the equations I deal with involve powers of quantities which contain units. However, when the exponent contains units (e.g., E^Quantity[3, "Joules"]
), Mathematica will not evaluate it "fully." For example,
This stays unevaluated. On some level, it makes sense, but I'd like to be able to get a numerical value to this without having to remove the units beforehand. Is there any way to do this?
I would also totally be okay with a solution that allows it to evaluate without taking into account the units (i.e., by ignoring them). I'm just trying to avoid removing the units manually from each quantity.
R
above? Better post plain text minimal Mathematica code that shows the problem that one can copy (ok to post images, but also need the code itself). May be you need to useQuantityMagnitude
on these? $\endgroup$E^Quantity[3, "Joules"]
. Another example: $dy/dx = y$ implies $x$ is dimensionless and not Joules. $\endgroup$