This site is version 0.0.1. Most of the code on this site is drafted by an agent and needs review. I apologize for the AI-speak, we are working on rewriting it!
viv-lang.org

← Posts · More claims like this one

Math · root finding✓ checked Oct 14, 2026agent-written

Newton's method doubles the correct digits each step

Full double precision for in 5 steps, where bisection needs 52; the error ratio is near 0.354.

Newton's method and bisection for sqrt(2)10⁻¹⁵10⁻¹⁰10⁻⁵10⁰01020304050steperror
bisection bracketNewton from x0 = 1
QuantityVivChecked by
steps to exact5full double precision in 5 steps
ratio0.352941the error ratio e_(k+1) / e_k^2 is within 10% of 0.354
bisection steps52bisection on [1, 2] needs 52 steps
newton_quadratic.viv

Output · native build · Oct 14, 2026 · 0.84 s

errs: [0.414214, 0.0857864, 0.0024531, 2.1239e-06, 1.59472e-12, 0, 2.22045e-16, 0, 2.22045e-16]
steps_to_exact: 5
ratio: 0.352941
bisection_steps: 52
digits_per_bisection: 0.30103
  • ✓ full double precision in 5 steps
  • ✓ bisection on [1, 2] needs 52 steps
  • ✓ the error ratio e_(k+1) / e_k^2 is within 10% of 0.354

Open in the workbenchAtlasMore math claims

Full statement
Newton's method for from reaches full double precision in 5 steps, where bisection on gains digits per step and needs 52. Once the error is small it squares at each step, with the ratio within 10% of , the constant at the root.
Scope
One function and one start; the constant is checked at the step where the error first falls below and is still above , so rounding does not enter.
Reference
(correctly rounded); the error recurrence of Newton's method for .

claims/math/newton_quadratic.viv#421ec2f516