Hide
Don't get spied on – We respect your privacy and provide numerous options to protect it. Join Siafoo Now or Learn More

Calculate Wind Chill Atom Feed 0

In Brief Find the wind chill for a given wind speed (in MPH) and temperature (in Fahrenheit)
# 's
 1/*
2** Wind Chill for exposed human skin, expressed as a function of wind
3** speed in Miles per Hour and temperature in degrees Fahrenheit.
4**
5** Public domain from numerous published references.
6*/
7
8#include <math.h>
9
10double wind_chill(int wind_speed, int temp)
11{
12 if (4 > wind_speed)
13 return (double)temp;
14 else
15 {
16 return (((10.45 + (6.686112 * sqrt((double) wind_speed))
17 - (.447041 * wind_speed)) / 22.034 * (temp - 91.4)) + 91.4);
18 }
19}

Find the wind chill for a given wind speed (in MPH) and temperature (in Fahrenheit)

Comments

over 6 years ago (22 Jan 2010 at 01:29 AM) by Stou S.
Woah, there's an actual formula for this? Mystery solved I guess...
over 6 years ago (22 Jan 2010 at 01:31 AM) by David Isaacson
And here I always thought the weatherman just went outside and said 'hmm feels about 40' hehe
over 6 years ago (22 Jan 2010 at 01:35 AM) by Stou S.
That's pretty much what I thought. Also I find the use of imperial units offensive.
over 6 years ago (22 Jan 2010 at 02:29 AM) by David Isaacson
write one with celsius and kph or m/s! unit conversion go!