Work

K-LQF: Kouakep's Log-Quadratic Formula - An Overflow-Free Formulation for Extreme Coefficients in the quadratic formula when b is very high

Year: 2026
Type: article
Abstract: The classic quadratic formula x = (-b ± sqrt(b²-4ac))/2a suffers from catastrophic overflow when |b| > 1.34e154 in IEEE-754 double precision. We present Kouakep's log-quadratic formula K-LQF, a logarithmic reformulation that computes log|D| instead of D=b²-4ac directly. By using log|D| = 2log|b| + log|1 - 4 exp(log|a|+log|c|-2log|b|)|, we avoid any b² computation. The method is pure Python, requires no PyTorch or GPU, and remains stable up to b=10^300. Benchmark shows classic fails at 1.7e154 while K-LQF remains accurate with error <1e-15. O(1) complexity, implementable on mobile devices.
Language: English
Open Access status: green
OpenAlex ID: W7203975546
FWCI:
Cites:
Cited by:
Related to: 9