sdr.wavelength(freq: float) float

Calculates the wavelength \(\lambda\) of a electromagnetic wave with frequency \(f\).

\[\lambda = \frac{c}{f}\]

Parameters:
freq: float

The frequency \(f\) in Hz of the signal.

Returns:

The wavelength \(\lambda\) in meters.

Examples

The wavelength of a 1 GHz signal is 0.3 meters.

In [1]: sdr.wavelength(1e9)
Out[1]: 0.299792458