Skip to content

odak.wave.wavenumber

Definition for calculating the wavenumber of a plane wave.

Parameters:

Name Type Description Default
wavelength float

Wavelength of a wave in mm.

required

Returns:

Type Description
float

Wave number for a given wavelength.

Source code in odak/wave/__init__.py
def wavenumber(wavelength):
    """
    Definition for calculating the wavenumber of a plane wave.

    Parameters
    ----------
    wavelength   : float
                   Wavelength of a wave in mm.

    Returns
    -------
    k            : float
                   Wave number for a given wavelength.
    """
    k = 2*np.pi/wavelength
    return k

See also