Wolfram Language (aka Mathematica) is the best for doing scientific computing with physical unit dimensions.
See: https://reference.wolfram.com/language/guide/Units.html
> The units framework [of Wolfram Language] integrates seamlessly with visualization, numeric and algebraic computation functions. It also supports dimensional analysis, as well as purely symbolic operations on quantities.