Is it possible to do calculations with GNU Octave using measuring units?
Is it possible to do calculations with GNU Octave using measuring units?
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?
The Octave miscellaneous package has embedded GNU units as a function which should be helpful.
It looks interesting, but more focused on conversions than actual operations it seems:
I think I've found a solution. Matlab has implemented
symunits
in the symbolic toolbox and I've found the original? on Github. Hopefully it is compatible to GNU Octave.