Pop-Up Thingie
Sidebar
Anarchy BBS
Home
Forum
Files
Games
More
User List
Dark
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
Recent Visitors
Guest
Mon Mar 25 11:00:10 2024
from
Just Signup
via
RLogin
Zharous
Wed Mar 20 23:11:39 2024
from
Tempe, Az
via
Telnet
Guest
Mon Mar 18 01:53:30 2024
from
Just Signup
via
Telnet
Guest
Sun Mar 17 00:49:43 2024
from
Just Signup
via
Raw
System Info
Sysop:
Havok
Location:
The Villages,FL
Users:
103
Nodes:
8 (
0
/
8
)
Uptime:
68:52:56
Calls:
533
Files:
4,560
Messages:
83,107
Synchronet Oneliners
Paulie420@tacopron
Mon May 6 22:51:08 2024
Dang - Taco Pronto is a pretty phun board ova here!!!
calcmandan@ecbbs
Tue May 7 02:57:18 2024
bloop
calcmandan@ecbbs
Tue May 7 02:57:27 2024
bloop*2
WIBG@tfsi
Tue May 7 07:05:04 2024
ZombieSlots Video Poker Lemonade MegaSlots Doors
WIBG@tfsi
Tue May 7 07:05:16 2024
ok
Roofstars@reality
Tue May 7 10:21:09 2024
I love old technology