Hello! In qalc I can do calculations using measuring units like this:
> 5 W * 3 s
(5 watts) × (3 seconds) = 15 J
I’d like to be able to do something similar also in GNU Octave. I think the symbolic library could be a place to look at, but I found nothing “already done”. Do any of you know of a way to achieve this functionality?
With symbolic variables
J, s
andW
, theWs
won’t be converted toJ
automatically.automatically no, but perhaps there’s a way to replace it. If there’s a way to check if a variable is “divisible by another symbolic one” then it would be not so hard to implement this behavior