I often find myself wanting to know the dimensions of large-ish expressions. Something like $\frac{e^2}{4\pi m \omega^2 \epsilon_0}$ say. I know I can evaluate this by hand, but I'd really enjoy some code that can double check, and do things much faster than I. Is anyone aware of such a resource?
$\begingroup$
$\endgroup$
5
-
2$\begingroup$ My suggestion is to keep a short list of the mass/length/time/current exponents for the harder-to-remember quantities, like $(-1,-3, 4, 2)$ for $\epsilon_0$. Then you just combine a few of these “vectors”. It will probably be faster than the alternatives. $\endgroup$Ghoster– Ghoster2025-07-09 16:53:53 +00:00Commented Jul 9 at 16:53
-
$\begingroup$ Aside from the other comment, if you have access to Mathematical you can also define all your constants that would have units and then your result can be simplified for any combination of them. Aside from that making your own code with any language you find easiest to use is a good way to learn this stuff. $\endgroup$Triatticus– Triatticus2025-07-09 16:56:18 +00:00Commented Jul 9 at 16:56
-
1$\begingroup$ Mathematica can also do unit conversions when everything isn’t in SI. $\endgroup$Ghoster– Ghoster2025-07-09 16:59:05 +00:00Commented Jul 9 at 16:59
-
1$\begingroup$ There are also various Python libraries. $\endgroup$Ghoster– Ghoster2025-07-09 17:06:33 +00:00Commented Jul 9 at 17:06
-
3$\begingroup$ I’m voting to close this question because questions on software recommendations are generally considered off-topic. $\endgroup$Kyle Kanos– Kyle Kanos2025-07-09 17:54:50 +00:00Commented Jul 9 at 17:54
Add a comment
|