Exponential sign bracketing Created 2026-10-24 Updated 2026-11-05
Exponential sign bracketing finds an integer interval with opposite endpoint signs before sign-bracketing binary search. Suppose is defined on nonnegative integers, its signs can be evaluated exactly, , and for all sufficiently large integers . Test . An exact zero can be returned immediately; otherwise stop at the first positive endpoint and retain the preceding negative endpoint, or zero when .
Excluding the already known evaluation at zero, this takes endpoint tests. For , the final integer interval is , of width . Repeated midpoint tests preserving opposite endpoint signs take further tests to reach adjacent integers, unless an exact zero is found earlier. For , is already adjacent.
No monotonicity is needed to preserve opposite endpoint signs, though other crossings may be skipped. Adjacent opposite signs do not imply an integer root; for , neither endpoint of is a root. A real-valued extension requires continuity to infer a real root by the intermediate value theorem. A machine implementation must handle integer overflow and unreliable floating-point arithmetic; mathematical termination does not ensure representable endpoints.