Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
float(x) -> floating point number

Convert a string or number to a floating point number, if possible.

src/g/d/GDAY-HEAD/src/mate_with_von_caem.py   GDAY(Download)
        """
        mt = self.params.measurement_temp + const.DEG_TO_KELVIN
        return k25 * exp((Ea * (Tk - mt)) / (mt * const.RGAS * Tk))
 
    def peaked_arrh(self, k25, Ea, Tk, deltaS, Hd):
 
        arg1 = self.arrh(k25, Ea, Tk)
        arg2 = 1.0 + exp((mt * deltaS - Hd) / (mt * const.RGAS))
        arg3 = 1.0 + exp((Tk * deltaS - Hd) / (Tk * const.RGAS))
 

src/g/d/GDAY-HEAD/src/water_balance.py   GDAY(Download)
        #  - mol/sec to m/s See Jones, 1992, appendix
        tk = tavg + const.DEG_TO_KELVIN
        MOL_SEC_2_M_PER_SEC = const.MM_TO_M / (press / (const.RGAS * tk))
        M_PER_SEC_2_MOL_SEC = 1.0 / MOL_SEC_2_M_PER_SEC
 
            # Convert mol/sec to m/s See Jones, 1992, appendix
            tk = tair[i] + const.DEG_TO_KELVIN
            MOL_SEC_2_M_PER_SEC = const.MM_TO_M / (press / (const.RGAS * tk))
            M_PER_SEC_2_MOL_SEC = 1.0 / MOL_SEC_2_M_PER_SEC
 

src/g/d/GDAY-HEAD/src/mate.py   GDAY(Download)
        * Medlyn et al. 2002, PCE, 25, 1167-1179.   
        """
        return k25 * exp((Ea * (Tk - self.mt)) / (self.mt * const.RGAS * Tk))
 
    def peaked_arrh(self, k25, Ea, Tk, deltaS, Hd):
        """    
        arg1 = self.arrh(k25, Ea, Tk)
        arg2 = 1.0 + exp((self.mt * deltaS - Hd) / (self.mt * const.RGAS))
        arg3 = 1.0 + exp((Tk * deltaS - Hd) / (Tk * const.RGAS))