Skip to main content

RELATIVE_TOLERANCE

Constant RELATIVE_TOLERANCE 

Source
pub const RELATIVE_TOLERANCE: f64 = 1e-12;
Expand description

Relative tolerance for comparing computed results.

Larger than f64::EPSILON: chained transcendental calls lose several ULP, and cancellation leaves a residue proportional to the operands.