Quality factor is ratio of energies
===================================

**Quality factor** is a property of an oscillating system defined as the ratio between the amount of
energy stored in system and the power losses.

..
    TODO same law in `dynamics/damped_oscillations`, remove this law?

.. py:currentmodule:: symplyphysics.definitions.quality_factor_is_energies_ratio

.. py:data:: quality_factor

    :attr:`~symplyphysics.symbols.classical_mechanics.quality_factor` of the oscillator.

Symbol:
    :code:`Q`

Latex:
    :math:`Q`

Dimension:
    :code:`dimensionless`


.. py:data:: resonant_angular_frequency

    Resonant :attr:`~symplyphysics.symbols.classical_mechanics.angular_frequency` of the oscillator.

Symbol:
    :code:`w`

Latex:
    :math:`\omega`

Dimension:
    :code:`angle/time`


.. py:data:: stored_energy

    :attr:`~symplyphysics.symbols.basic.energy` stored in the oscillator.

Symbol:
    :code:`E`

Latex:
    :math:`E`

Dimension:
    :code:`energy`


.. py:data:: dissipated_power

    :attr:`~symplyphysics.symbols.basic.power` dissipated from the oscillator.

Symbol:
    :code:`P`

Latex:
    :math:`P`

Dimension:
    :code:`power`


.. py:data:: definition

    :code:`Q = w * E / P`


    Latex:
        .. math::
            Q = \frac{\omega E}{P}