Welcome to Project Lovelace! We're still super new so there are still tons of bugs to find and improvements to make. If you have any suggestions, complaints, or any comments at all please let us know on Discourse!

Wind chill

You will learn about: winter weather and exponents.

If you go outside when it's cold (below 5°C) and windy, you probably noticed that it feels colder than what the temperature says it is. This is because cold air is passing around your body, lowering your body's temperature and making you feel colder. The wind chill index $T_{wc}$ quantifies the apparent temperature you feel using the formula $$ T_{wc} = 13.12 + 0.6215T_a - 11.37v^{0.16} + 0.3965T_av^{0.16} $$ where $T_a$ is the temperature of the air and the $v$ is the wind speed.




Input: The air temperature $T_a$ in Celcius (°C) and the wind speed $v$ in kilometers per hour.

Output: The wind chill factor $T_{wc}$.


Example

Input temperature: -25 Input wind speed: 30 Output wind chill index: -39.09


 Difficulty  Timesink
 Maximum runtime 60 s  Max. memory usage 250 MiB
 Function signature wind_chill(T_a, v)

Write a function that accepts the input as function parameters and returns the correct output. Make sure to read the description above to produce the correct output in the correct format and use the correct function signature so we can run your code. A good first step is to try reproducing the example(s). Your code must not take longer than the maximum runtime to run and must not use more memory than the allowed limit.




You must be logged in to view your submissions.

Notes

  • When it is hot and humid, it might feel warmer that what the temperature says it is due to high humidity. In this case the heat index and humidex can quantify the apparent temperature but it's more complicated to calculate.

Let us know what you think about this problem! Was it too hard? Difficult to understand? Also feel free to discuss the problem, ask questions, and post cool stuff on Discourse. You should be able see a discussion thread below. Feel free to post your solutions but if you do please organize and document your code well so others can learn from it.