Functions§
- antenna_
directivity - Antenna directivity from gain and efficiency: D = G / η
- antenna_
gain_ from_ area - Antenna gain from effective area: G = 4πA_e / λ²
- beamwidth_
approximate - Approximate antenna beamwidth in degrees: θ ≈ 70λ / D.
- characteristic_
impedance_ coax - Characteristic impedance of coaxial cable: Z₀ = (138/√εr) × log₁₀(D/d).
- db_
to_ ratio - Convert dB to linear ratio: ratio = 10^(dB / 10)
- dbm_
to_ watts - Convert dBm to watts: P = 10^((dBm - 30) / 10)
- effective_
area_ from_ gain - Effective aperture from gain: A_e = Gλ² / (4π)
- eirp
- Effective isotropic radiated power: EIRP = P × G
- fade_
margin_ db - Fade margin: FM = received_dBm - sensitivity_dBm
- free_
space_ path_ loss - Free-space path loss in dB: FSPL = 20log₁₀(d) + 20log₁₀(f) + 20log₁₀(4π/c)
- frequency_
to_ energy - Photon energy from frequency: E = hf
- frequency_
to_ wavelength - Frequency to wavelength: λ = c / f
- friis_
received_ power - Friis transmission equation (linear): Pr = Pt × Gt × Gr × (λ/(4πd))²
- half_
wave_ dipole_ gain - Returns the half-wave dipole gain (linear): G ≈ 1.64 (2.15 dBi).
- link_
budget_ db - Link budget in dB: Pr = Pt + Gt + Gr - PathLoss
- mismatch_
loss - Mismatch loss in dB: ML = -10log₁₀(1 - ((VSWR-1)/(VSWR+1))²)
- noise_
power - Thermal noise power: N = k_B × T × B
- ratio_
to_ db - Convert linear ratio to dB: dB = 10log₁₀(ratio)
- return_
loss - Return loss in dB: RL = -20log₁₀(|Γ|)
- shannon_
capacity - Shannon-Hartley channel capacity: C = B × log₂(1 + SNR)
- skin_
depth_ conductor - Skin depth in a conductor: δ = 1 / √(πfμσ)
- snr_db
- Signal-to-noise ratio in dB: SNR = 10log₁₀(S / N)
- thermal_
noise_ floor_ dbm - Thermal noise floor in dBm: 10log₁₀(k_B × T × B) + 30
- velocity_
factor - Velocity factor: VF = 1 / √εr
- vswr
- Voltage standing wave ratio: VSWR = (1 + |Γ|) / (1 - |Γ|)
- watts_
to_ dbm - Convert watts to dBm: dBm = 10log₁₀(P) + 30
- wavelength_
in_ line - Wavelength in a transmission line: λ_line = λ₀ × VF
- wavelength_
to_ frequency - Wavelength to frequency: f = c / λ