Pop-Up Thingie
Sidebar
Digital Distortion
Home
Forum
Web Monitor
Files
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
Web-based telnet client
Other Links
What is a BBS?
Doors installed on this BBS
Digital Distortion Doors
Door stats
Trivia scores
Message networks
Terminal software
Synchronet archiver setup
Web-based games
Peanut Butter Jelly Time
Today's Deep Thought
Other services
Telnet
RLogin
IRC
Email & news access
Feel free to
send me an email
.
BBS UPS stats
Who's Online
Recent Visitors
cepefoh251
Wed Aug 2 01:21:39 2023
via
HTTP
detibi8403
Sat Aug 5 04:44:08 2023
via
HTTP
Mariachilds
Fri Aug 11 02:57:26 2023
from
United states
via
HTTP
Wilmaxs
Wed Aug 16 04:20:48 2023
via
HTTP
Recent Visitors
cepefoh251
Wed Aug 2 01:21:39 2023
via
HTTP
detibi8403
Sat Aug 5 04:44:08 2023
via
HTTP
Mariachilds
Fri Aug 11 02:57:26 2023
from
United states
via
HTTP
Wilmaxs
Wed Aug 16 04:20:48 2023
via
HTTP
System Info
Sysop:
Eric Oulashin
Location:
Beaverton, Oregon, USA
Users:
99
Nodes:
16 (
0
/
16
)
Uptime:
12:38:45
Calls:
3,538
Calls today:
5
Files:
8,461
Messages:
337,288
Synchronet Oneliners
kk4qbn@kk4qbn
Wed May 1 16:32:44 2024
got games?? - kk4qbn.synchro.net - telnet/www/irc. therewego
Superhuman@reality
Fri May 3 09:07:59 2024
Maybe Alice in Wonderland... Alice Cooper... Alice in Chains...
Superhuman@reality
Fri May 3 14:26:28 2024
BBSlink TEOS has finally been reset after a full decade! Or well
Superhuman@reality
Fri May 3 14:27:03 2024
over 2,000 days (more than 5 1/2 years) of actual game time!
Roguewielder@reality
Sun May 5 12:37:24 2024
w*rk
Roguewielder@reality
Sun May 5 12:37:33 2024
w*rk