Pop-Up Thingie
Sidebar
HispaMSX BBS
Home
Forum
Files
Oneliners
Archive
Log in
Username
Password
Sidebar
Forum
DOVE-Net
Programming
half wave dipole python script
From
Kb3pml
@VERT/RDOMENTR to
All
on Wed Mar 3 14:01:33 2021
0
0
#ã# Calculate the dimensions of and the resonant frequency of ã# a half-wave dipole's antenna elementsã#ã# 468ã# F = ------------ ã# L ã#ã# 468ã# L = ------------ ã# F ã#ã#def frequency(length):ã# return 468/lengthã#ã#def length(frequency):ã# return 468/frequencyã#ãmenuSelect = ''ãprint("\n")ãprint("Half-Wave Dipole Calculations\n")ã#ãinvalidMenu = Falseãwhile invalidMenu == False:ã print("\n")ã print("[F] --- Calculate resonant frequency from length")ã print("[L] --- Calculate length from resonant frequency")ã print("[Q] --- Quit")ã menuSelect = input("Select: ")ã menuSelect = menuSelect.lower()ã#ã if (menuSelect == 'f' or menuSelect == 'l' or menuSelect == 'q'):ã invalidMenu = Trueã else:ã print("Please select a valid menu entry...")ã#ã# print(menuSelect)ã#ãif (menuSelect == 'q'):exitãelif (menuSelect == 'f'):ã l = input("Enter dipole's length in feet: ") ã print("Resonant frequency: {0} MHz".format(468/float(l))) ã#ãelif (menuSelect == 'l'):ã f = input("Enter dipole's resonant frequency in MHz: ") ã print("Length: {0} feet".format(468/float(f)))ãelse: ã print("ERROR") ãexitãã---ã þ Synchronet þ Radio Mentor BBS - bbs.radiomentor.orgã
Who's Online
System Info
Sysop:
Karloch
Location:
Madrid, Spain
Users:
54
Nodes:
8 (
0
/
8
)
Uptime:
127:25:57
Calls:
700
Files:
17,895
D/L today:
128 files
(60,769K bytes)
Messages:
66,010