Pop-Up Thingie
Sidebar
RetroDigital BBS
Home
Forum
Files
BBS Status
Telnet Access
Fidonet
Join Fidonet Net342
FidoNet Nodelist Database
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
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:
326
Nodes:
10 (
0
/
10
)
Uptime:
83:44:25
Calls:
2,733
Files:
6,626
D/L today:
63 files
(26,816K bytes)
Messages:
495,164
Synchronet Oneliners
Vintagegeek@rdbbs
Sat Sep 26 10:03:00 2026
Bones
Deepend@rdbbs
Sun Oct 4 17:18:14 2026
upgraded BBS to current synchronet version
User Fx@rdbbs
Sun Oct 4 21:01:03 2026
idek. thank you, from hashnix.club peace. ~ufx
Dustman@rdbbs
Wed Oct 7 11:32:39 2026
Howdy all :)
Vintagegeek@rdbbs
Wed Oct 14 10:53:35 2026
The Price is Wrong Now
Dundee@rdbbs
Mon Oct 19 16:38:50 2026
The Dude abides...