FA-70953 / Weather index computation / Member archive
Livestock temperature-humidity index: humidity coefficient scale · case 03
Humid barns report nearly the same THI as dry ones.
Case contract
Input barn temperature degC and RH percent. THI = (1.8T+32) - (0.55 - 0.0055RH)(1.8T - 26); THI is rounded to 0.1 first and the stress level is taken from the rounded value: <72 none, <79 mild, <89 moderate, <99 severe, else emergency.
Why this case matters
Dairy heat-stress alerts and cooling automation key off THI bands.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| 21 C barn at 20% RH | [63.3, "none"] | [64.6, "none"] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗