Pop-Up Thingie
Sidebar
RetroDigital BBS
Home
Forum
Files
FTN Node Search
BBS Status
Telnet Access
Fidonet
Join Fidonet Net342
Games
Games
BBSLink Scores
Arcadian Legends
Assassin
BRE
Bordello
FW Fishing
Falcons Eye
Falcons Honor
JunkYard
LORD 1
LORD 2
Lemonade
MZK LORD
Mega Slots
Mega_Slots
NetRunner
OOII
TEOS
USURPER
Dark
Register
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:
deepend
Location:
Calgary, Alberta
Users:
287
Nodes:
10 (
0
/
10
)
Uptime:
01:18:31
Calls:
2,449
Files:
5,322
D/L today:
14 files
(9,995K bytes)
Messages:
445,137
Synchronet Oneliners
Vintagegeek@rdbbs
Thu Nov 27 05:45:45 2025
HAPPY THANKSGIVING
Vintagegeek@rdbbs
Fri Nov 28 14:18:50 2025
Amazon Prime Green Friday
Vintagegeek@rdbbs
Fri Dec 5 06:02:20 2025
Maple Leafs
Pedro Herzensbuch@rdbbs
Sat Dec 6 14:51:28 2025
Van a pasar cosas
Vintagegeek@rdbbs
Sun Dec 7 13:30:36 2025
Merry Christmas
Vintagegeek@rdbbs
Wed Dec 10 08:04:26 2025
M E R R Y C H R I S T M A S