FAILURE MAP
← Case archive

FA-70967 / Weather index computation / Member archive

Livestock temperature-humidity index: classify after rounding · case 02

A reported THI of 72.0 is labelled none because the unrounded 71.97 was classified.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

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 fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
THI just under 72 unrounded 22.7 C 89%[72.0, "none"][72.0, "mild"]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 ↗