physchem.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:aide_design 作者: AguaClara 项目源码 文件源码
def density_water(temp):
    """Return the density of water at a given temperature.

    If given units, the function will automatically convert to Kelvin.
    If not given units, the function will assume Kelvin.
    """
    ut.check_range([temp, ">0", "Temperature in Kelvin"])
    rhointerpolated = interpolate.CubicSpline(WATER_DENSITY_TABLE[0],
                                                    WATER_DENSITY_TABLE[1])
    return rhointerpolated(temp)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号