overreact/tunnel.py
def f(eps, with_exp=True):
        """Transmission function multiplied or not by the Boltzmann weight."""
        a1 = F * np.sqrt((eps + v1) / u)
        a2 = F * np.sqrt((eps + v2) / u)

        qplus = np.cosh(two_pi * (a1 + a2))
        qminus = np.cosh(two_pi * (a1 - a2))

        p = (qplus - qminus) / (D + qplus)
        if with_exp:
            return p * np.exp(-eps)
        return p
Transmission function multiplied or not by the Boltzmann weight.
Transmission function multiplied or not by the Boltzmann weight.
Transmission function multiplied or not by the Boltzmann weight .
def f(eps, with_exp=True):
        a1 = F * np.sqrt((eps + v1) / u)
        a2 = F * np.sqrt((eps + v2) / u)
        qplus = np.cosh(two_pi * (a1 + a2))
        qminus = np.cosh(two_pi * (a1 - a2))
        p = (qplus - qminus) / (D + qplus)
        if with_exp:
            return p * np.exp(-eps)
        return p
def f ( eps , with_exp = True ) : a1 = F * np . sqrt ( ( eps + v1 ) / u ) a2 = F * np . sqrt ( ( eps + v2 ) / u ) qplus = np . cosh ( two_pi * ( a1 + a2 ) ) qminus = np . cosh ( two_pi * ( a1 - a2 ) ) p = ( qplus - qminus ) / ( D + qplus ) if with_exp : return p * np . exp ( - eps ) return p
Transmission function multiplied or not by the Boltzmann weight.
Transmission function multiplied or not by the Boltzmann weight .
"""Transmission function multiplied or not by the Boltzmann weight."""
eps
with_exp