FAILURE MAP
← Case archive

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

Compass variation and deviation: Compass to magnetic also applies variation · case 04

Magnetic courses include variation that belongs only to true.

Member previewVariant 4 · 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 [200, "C", "M", "0.5E", "1.5W"][199.0, "1.0W"][198.5, "1.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 ↗