"
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
______________________________________________________________
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:Elecraft@mailman.qth.net

This list hosted by: http://www.qsl.net
Please help support this email list: http://www.qsl.net/donate.html
Message delivered to arch...@mail-archive.com

Reply via email to