projects / proj-math-007
Next task →
Projects/Foundations/Root-finder shootout on the Wilkinson polynomial — controlled synthetic benchmark
Level 5 · research · ~13 h

Root-finder shootout on the Wilkinson polynomial — controlled synthetic benchmark

Compare bisection, Newton, secant and Halley methods on the degree-20 Wilkinson polynomial and on a double root with perturbed coefficients. Use a fixed seed, a controlled ground truth, and an ablation grid over the key hyperparameter.
Add to portfolio →

Problem statement

  • 01Compare bisection, Newton, secant and Halley methods on the degree-20 Wilkinson polynomial and on a double root with perturbed coefficients. Use a fixed seed, a controlled ground truth, and an ablation grid over the key hyperparameter.

Real-world motivation

  • 01The Wilkinson polynomial is the canonical example of coefficient perturbation destroying root conditioning. The controlled synthetic benchmark setting forces concrete choices about data, scale and evaluation.

Learning objectives

  • 01Implement four root finders
  • 02Measure convergence order
  • 03Quantify root sensitivity
  • 04Report relative error against the analytic ground truth alongside the baseline metrics.

Technical architecture

  • 01bracketed and open iteration schemes
  • 02coefficient perturbation harness
  • 03convergence-order estimator

Mathematical foundations

  • 01Newton iteration $x_{k+1}=x_k-p(x_k)/p'(x_k)$
  • 02root condition number $\kappa=1/|p'(r)|$ scaled by coefficient perturbation

Dataset and sources

  • 01synthetic matrices generated with numpy.random.default_rng(42)
  • 02condition numbers 1, 10, 100, 1000

Step-by-step tasks

  • 01Frame the task and freeze the controlled synthetic benchmark evaluation protocol with a fixed random seed.
  • 02Implementation 1: Evaluate p and p' by Horner
  • 03Implementation 2: Track residuals per iteration
  • 04Implementation 3: Perturb one coefficient by 2^-23
  • 05Verification 1: Check quadratic convergence for a simple root
  • 06Verification 2: Verify bisection bracket invariant
  • 07Run the ablation grid and report relative error against the analytic ground truth over three independent trials.

Implementation requirements

  • 01Evaluate p and p' by Horner
  • 02Track residuals per iteration
  • 03Perturb one coefficient by 2^-23
  • 04Log all hyperparameters and the random seed for the controlled synthetic benchmark run.

Testing requirements

  • 01Check quadratic convergence for a simple root
  • 02Verify bisection bracket invariant
  • 03Measure relative error against the analytic ground truth over at least three seeds.

Evaluation metrics

  • 01iterations to 1e-12
  • 02observed convergence order
  • 03root displacement under perturbation
  • 04relative error against the analytic ground truth

Expected outputs

  • 01convergence plot
  • 02table of perturbed roots

Common failure modes

  • 01Newton cycles on near-double roots
  • 02deflating changes subsequent root accuracy
  • 03ill-conditioning above 1e3 makes double precision futile

Stretch goals

  • 01implement Aberth simultaneous iteration
  • 02use mpmath high precision as truth
  • 03repeat in float32 and quantify the extra error floor

Research extensions

  • 01relate root conditioning to the discriminant
  • 02study simultaneous root finders for clustered roots

GitHub submission requirements

  • 01A repository whose README states the controlled synthetic benchmark protocol and the exact command to reproduce it.
  • 02Source for the scratch implementation, a test file, and a results table with uncertainty estimates.
  • 03A two-page report explaining failures on synthetic matrices generated with numpy.random.default_rng(42) and what the ablation revealed.

Completion rubric

  • 01four methods implemented
  • 02convergence order measured not asserted
  • 03perturbation explained
  • 04Extra credit: repeat in float32 and quantify the extra error floor

Submit when every rubric item is satisfied and your repository contains runnable code plus a reproduction command.