01 // PROJECT AT A GLANCE
105TORUS
CBehind the geometry of a doughnut, a quartic equation that has to be solved numerically.
The logical follow-up to the previous project, with a markedly trickier figure: the torus. Where a sphere leads to a quadratic equation, a torus produces a quartic one. The project sets geometry aside to concentrate on the heart of the problem: finding the root of that polynomial, and above all comparing three iterative methods that each get there at their own pace — one slow but sure, another fast but temperamental.
Numerically solving a quartic equation given by its coefficients, through bisection, Newton's method or the secant method, printing each iteration up to the requested precision.
PRIMARYC
DELIVERYTEAM RECORD
VERIFICATIONmake
SOURCEINSPECTOR READY
03 // KEY OUTCOMES
- Three numerical methods implemented side by side to compare their convergence speeds
- A stopping criterion driven by the requested precision, with progressive decimal display
- Division by zero handled explicitly for Newton as well as for the secant
BEYOND THE BRIEF
- The three methods implemented side by side rather than just one, which makes their convergence speed comparable
04 // SOURCE TREE
READING SOURCE…