Longitudinal frequency shift from speeds ======================================== General relativistic Doppler effect that is classical Doppler effect with relativistic coefficient. This law is not used for actual calculations because relativistic effects are not visible for acoustic waves. And for electromagnetic waves it is hard to define velocity relative to medium. This law is used to show the connection between classical and relativistic Doppler laws. **Notes:** #. The speed of light is used in this law, so replace it with the correct value of the speed of light in the medium. #. When wave velocity is getting close to speed of light, we are no longer having observer and source velocities, but relativistic relative velocity. **Conditions:** #. Motion is in 1D space. #. Coordinate system is at rest with respect to the medium of the wave, or any coordinate system for electromagnetic wave in vacuum. #. Medium is not fixed in space. #. Source and observer velocities are no greater than wave velocity. #. The source and observer velocities are collinear. .. TODO rename file TODO add link .. py:currentmodule:: symplyphysics.laws.waves.relativistic.longitudinal_frequency_shift_from_absolute_velocities .. py:data:: observer_frequency Observer :attr:`~symplyphysics.symbols.classical_mechanics.temporal_frequency`. Symbol: :code:`f_o` Latex: :math:`f_\text{o}` Dimension: :code:`frequency` .. py:data:: source_frequency Source :attr:`~symplyphysics.symbols.classical_mechanics.temporal_frequency`. Symbol: :code:`f_s` Latex: :math:`f_\text{s}` Dimension: :code:`frequency` .. py:data:: source_speed Source :attr:`~symplyphysics.symbols.classical_mechanics.speed`, positive when moving away from observer and negative otherwise. Symbol: :code:`v_s` Latex: :math:`v_\text{s}` Dimension: :code:`velocity` .. py:data:: observer_speed Observer :attr:`~symplyphysics.symbols.classical_mechanics.speed`, positive when moving away from source and negative otherwise. Symbol: :code:`v_o` Latex: :math:`v_\text{o}` Dimension: :code:`velocity` .. py:data:: wave_speed :attr:`~symplyphysics.symbols.classical_mechanics.phase_speed` of the wave. Symbol: :code:`v` Latex: :math:`v` Dimension: :code:`velocity` .. py:data:: law :code:`f_o = f_s * (1 - v_o / v) / (1 + v_s / v) * sqrt((1 - (v_s / c)^2) / (1 - (v_o / c)^2))` Latex: .. math:: f_\text{o} = \frac{f_\text{s} \left(1 - \frac{v_\text{o}}{v}\right)}{1 + \frac{v_\text{s}}{v}} \sqrt{\frac{1 - \left(\frac{v_\text{s}}{c}\right)^{2}}{1 - \left(\frac{v_\text{o}}{c}\right)^{2}}}