This appears to be related to known issues. Please your add observations to the bug report so that those working on the units package may have as much information as possible.
See: https://github.com/sympy/sympy/issues/18368
A work around that involves more work on your part, but does not behave oddly is to define unit symbols as positive and real SymPy variables (e.g. `var('J kg m s', positive=True, real=True)`). They will behave as you expect. You can convert units by using syntax such as `.subs({J:kg*m**2/s**2})`, which would convert J to the SI base units.
Jonathan
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/92a0cf64-b163-49a3-a76d-89ddc467ad44n%40googlegroups.com.