def sound_pressure_level(pressure, reference_pressure=REFERENCE_PRESSURE):
    """
    Sound pressure level :math:`L_p` in dB.

    :param pressure: Instantaneous sound pressure :math:`p`.
    :param reference_pressure: Reference value :math:`p_0`.

    .. math:: L_p = 10 \\log_{10}{ \\left( \\frac{p^2}{p_0^2} \\right)}

    See section 2.2.
    """
    return 10.0 * np.log10( pressure**2.0 / reference_pressure**2.0 )
dataset/ETHPy150Open python-acoustics/python-acoustics/acoustics/standards/iso_tr_25417_2007.py/sound_pressure_level/original