windchil.c

来自「c语言库函数!里面包含了所以c语言中的系统函数的实现及其详细说明和代码!请大家及」· C语言 代码 · 共 23 行

C
23
字号
/* +++Date last modified: 05-Jul-1997 */

/*
**  Wind Chill for exposed human skin, expressed as a function of wind
**  speed in Miles per Hour and temperature in degrees Fahrenheit.
**
**  Public domain from numerous published references.
*/

#include <math.h>
#include "windchil.h"
 
double wind_chill(int wind_speed, int temp)
{
      if (4 > wind_speed)
            return (double)temp;
      else
      {
            return (((10.45 + (6.686112 * sqrt((double) wind_speed))
                  - (.447041 * wind_speed)) / 22.034 * (temp - 91.4)) + 91.4);
      }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?