FAILURE MAP
← Case archive

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

Compass variation and deviation: True to compass adds the corrections · case 02

Compass courses derived from true are off by twice the error.

Member previewVariant 2 · 3 implementations · 7 checks per implementation

Case contract

Input [value, frm, to, var, dev] with frm/to in C (compass), M (magnetic), T (true); var and dev like "3.5W"/"2E" (east positive). M=C+dev, T=M+var; converting downward subtracts. Return [value mod 360 rounded 1, total compass error dev+var as "x.xE"/"x.xW" or "0"].

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
compass variation and deviation [5, "T", "M", "7W", "1W"][358.0, "8.0W"][12.0, "8.0W"]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 ↗