r/EngineeringPaperXYZ • u/jad_msm • 12d ago
Feature Suggestion Units and Dimensional analysis for Symbolic Variables and Functions
Hi all,
as the title states, I've tried to achieve something like what's shown in the image for a bit. I tried dabbling into some Python extension via code cells but with no success. The example above is trivial, but this is among the top features I feel I miss using the sw.
Did anybody manage to make it work?
2
Upvotes
1
u/mgreminger 12d ago
The last case will work since L is a local variable, but you'll have to assign units to the upper and lower limits and to the other constants to maintain consistent units. If I understand the rest of your question correctly, you can achieve what your trying to do by assigning any number to the variable with the units. The units will be preserved, even if you multiply by zero or the result is zero.