Hacker News new | ask | show | jobs
by kurlberg 3669 days ago
Brute force is not needed, check out "continued fraction" (in particular "11. Best rational approximations" at wikipedia.)