Here is a minimal example:
Quantity[z, "m"]/(Quantity[x, "m"] Log[q] + Quantity[y, "m"])
z,x,q,y are undefined variables. Mathematica refuses to cancel the meter unit. I tried
Simplify, but they don't work. I think the
Log[q] term is culprit. If you remove it, the meter goes away.
This is problematic, because I cannot use this expression inside numerical methods. I need to find a way to simplify the units. I can't remove them by hand, because this expression is generated automatically from other routines I have in my code. Any ideas?