windchill.frink

Download or view windchill.frink in plain text format


// This file implements the new windchill index which is used by U.S. and
// Canadian weather services.
//
//  See:  http://en.wikipedia.org/wiki/Wind_chill
windchill[temperature is temperature, windspeed is velocity] :=
{
   Ta = C[temperature]
   V = windspeed / (km/hr)
   Twc = C[13.12 + 0.6215 Ta - 11.37 V^0.16 + 0.3965 Ta V^0.16]
   return Twc
}

// Example:
// println[C[windchill[C[-30], 25 km/hr]]]


Download or view windchill.frink in plain text format


This is a program written in the programming language Frink.
For more information, view the Frink Documentation or see More Sample Frink Programs.

Alan Eliasen was born 19972 days, 5 hours, 44 minutes ago.