FAILURE MAP
← Case archive

FA-14992 / Numerics / Member archive

Best bounded rational: denominator bound inclusion · case 02

The exact best bounded rational result violates the stated contract at denominator bound inclusion.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

Input [p,q,B], q>0 B>0; nearest rational to p/q with denominator<=B, ties choose smaller rational then denominator.

Why this case matters

Exact discrete arithmetic with observable algorithmic state; no floating point approximation is used.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
explicit oracle 0null[-6, 1]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 ↗