[Elecraft] Coax Switches / dBm & W in python
Andy Durbin
a.durbin at msn.com
Sun Feb 17 16:32:41 EST 2019
"
from math import *
w2dbm = lambda x: 10 * log10(x/10) + 30
dbm2w = lambda x: 10 ** ((x-30)/10)
iso = lambda pwr_W, iso_dB: dbm2w(w2dbm(pwr_W) - iso_dB)
and now something like
>>> iso(1500, 60)
0.001500
tells you that 1500 W with 60 dB isolation leaks 1.5 mW to the other port."
Does dividing 1,500 by 10 to the power of 6 really need a computer and a Python script? Why not just move the decimal point 6 times?
73,
Andy, k3wyc
More information about the Elecraft
mailing list