import math


def electron_temperature(TaL,TaC,n,delta_V):
    """
    Given the peak antenna temperature in the line, TaL, the
    continuum temperature, TaC, the quantum number of the lower
    level, n, and the line FWHM, delta_V in km/s, returns the
    electron temperature in K.  Lockman and Brown, Ap.J. 207,
    436 (1976), eq. 2
    """
    # print TaL, TaC, n, delta_V
    return 10000*math.pow( (1.29/delta_V) \
                          *(TaC/TaL)      \
                          *pow(n/100.,-3.3), 0.87)