在Python中计算风寒因子(WCF)或风寒指数(WCI)

W 冷冰冰的 W indchill是由于空气流动,身体在暴露的皮肤上感觉到的空气温度降低。风寒的作用是增加热损失率,并更快地将任何较温暖的物体降低到环境温度。 以下是加拿大、英国和美国在2001年采用的计算和分析风寒指数的标准公式:

null

T 厕所 (WCI)=13.12+0.6215T A. -11.37v +0.16 +0.3965吨 五、 +0.16 哪里

T 厕所 =风寒指数(基于摄氏温度等级) T A. =空气温度(摄氏度) v=风速(以英里/小时为单位)

例如:

Input: 
Air Temperature = 28
Wind Speed = 80
Output: 30
Calculation done using the above formula:
WCI = 13.12 + 0.6215 * (28) - 
      11.37 * (80)**0.16 + 
      0.3965 * 28 * 80**0.16
Input: 
Air Temperature = 42
Wind Speed = 150
Output: 51
Calculation done using the above formula:
WCI = 13.12 + 0.6215 * (42) - 
      11.37 * (150)**0.16 + 
      0.3965 * 42 * 150**0.16

# Python program to calculate WCI
import math
# funtion to calculate WCI
def WC(temp, wi_sp):
# Calculating Wind Chill Index (Twc)
wci = 13.12 + 0.6215 * temp - 11.37 * math. pow (wi_sp, 0.16 ) +
0.3965 * temp * math. pow (wi_sp, 0.16 )
return wci
# Taking the Air Temperature (Ta)
temp = 42
# Taking the Wind Speed (v)
wi_sp = 150
print ( "The Wind Chill Index is" , int ( round (WC(temp, wi_sp))))


输出:

The Wind Chill Index is 51

本文由 金莫伦卡 .如果你喜欢GeekSforgek,并想贡献自己的力量,你也可以使用 贡献极客。组织 或者把你的文章寄到contribute@geeksforgeeks.org.看到你的文章出现在Geeksforgeks主页上,并帮助其他极客。

如果您发现任何不正确的地方,或者您想分享有关上述主题的更多信息,请写下评论。

© 版权声明
THE END
喜欢就支持一下吧
点赞5 分享