3 ms·
At some point I was looking at using a units library, but came up short because I could not find one that could convert using log scale units (which I needed).
by cycomanic 3y ago
At some point I was looking at using a units library, but came up short because I could not find one that could convert using log scale units (which I needed). The same is True for gnu units.
It can convert from linear to log units, e.g.:
You have: 10W
You want: dBm
40
but not the other way around (unless I'm missing something):
You have: 40 dBm
^
Parse error
I understand that log units are tricky to get right, but in some fields they are pretty ubiquitous.
- kragen 3y agoYou have: dBm(40) You want: W * 10 / 0.1 also you can name the inverse with ~ You have: ~dBm(2 W + dBm(10)) You want: Definition: 33.031961 the man page documents these