Skip to main content

ERR_COEFF_3

Constant ERR_COEFF_3 

Source
pub const ERR_COEFF_3: f64 = _; // 1.7763568394002536E-15f64
Expand description

Absolute error coefficient for Matrix::<3>::det_direct.

For any 3×3 matrix A with finite f64 entries,

|A.det_direct() - det_exact(A)|  ≤  ERR_COEFF_3 · p(|A|)

where p(|A|) is the absolute Leibniz sum (the same cofactor expansion as det_direct but with |·| at every leaf). det_direct for D=3 uses three 2×2 FMA minors combined by a nested FMA, yielding the 8·EPS + 64·EPS² bound. See REFERENCES.md [8] for the Shewchuk framework these bounds follow.

Prefer Matrix::det_errbound over this constant for typical use; see ERR_COEFF_2 for a worked example.