FA-70957 / Weather index computation / Member archive
Livestock temperature-humidity index: Fahrenheit depression term · case 02
THI drifts upward and moderate stress is reported too early.
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 |
|---|---|---|---|
| 15 C barn at 70% RH | [60.8, "none"] | [58.8, "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 ↗