Created
February 19, 2014 03:39
-
-
Save bmcculley/9085641 to your computer and use it in GitHub Desktop.
Find the wind chill temperature in PHP.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Wind Chill formula in PHP | |
* https://en.wikipedia.org/wiki/Wind_chill | |
*/ | |
function windChillTemp($V,$Ta) | |
{ | |
$Vpower = pow($V, 0.16); | |
$TaV = $Ta * $Vpower; | |
$Twc = 35.74 + 0.6215 * $Ta - 35.75 * $Vpower + 0.4275 * $TaV; | |
return round($Twc); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment