Solve polynomial equations up to cubic degree and visualize their roots.
Solves polynomial and transcendental equations \(f(x) = 0\). Linear equations \(ax + b = 0 \implies x = -b/a\); Quadratic formula \(x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}\) with discriminant \(\Delta = b^2-4ac\) governing real/complex roots; Cubic equations via Cardano-Tartaglia method; General root-finding via Newton-Raphson iteration \(x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}\) achieving quadratic convergence for regular roots.
ax + b = 0
ax² + bx + c = 0
ax³ + bx² + cx + d = 0