def METHOD_NAME(alow,ahigh,Trange,T):
    H = 0.0
    if T>0.0:
        Tmid = Trange[1]
        Ta=[]
        Ta.append(1.0)         #0
        Ta.append(T/2.0)       #1
        Ta.append(T*T/3.0)     #2
        Ta.append(T*T*T/4.0)   #3
        Ta.append(T*T*T*T/5.0) #4
        Ta.append(1.0/T)       #5
        if T<=Tmid:
            a = alow
        else:
            a = ahigh
        for i in range(len(Ta)):
            H = H + a[i]*Ta[i]
        H = H*p.R*T
    return H