FAILURE MAP
← Case archive

FA-68902 / Tide and marine navigation tables / Member archive

Cosine curve time for height: Heights equal to a turning point are rejected · case 02

Asking when high water height is reached returns None.

Member previewVariant 2 · 3 implementations · 7 checks per implementation

Case contract

Input [t1,h1,t2,h2,h] (hours, metres) for consecutive turning points with t2>t1 and h1!=h2. Height follows h1+(h2-h1)*(1-cos(pi*s/T))/2 with s elapsed and T=t2-t1. Return the time in whole minutes (rounded half up) when the height h is first reached on that half-cycle, or None when h lies outside the closed range of h1..h2.

Why this case matters

Tide tables and passage plans turn published predictions into go/no-go decisions about depth, clearance and timing.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
cosine curve time for height [0, 0.6, 6.2, 4.4, 4.4]null372Failed

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 ↗