pub fn damped_newton<const N: usize, F>(
function: F,
initial: Vector<N>,
tolerance: f64,
max_iterations: u32,
) -> Result<NewtonReport<N>, AnalysisError>Expand description
Damped Newton root-finding: iterates point ← point − step solving
function(point) = 0 for F: Vector<N> → Vector<N> (e.g. a gradient),
with a damped step, residual-norm convergence at tolerance, and a
max_iterations bound. Returns a NewtonReport (solution, iterations,
residual/step norms); InvalidDomain on non-finite input or zero tolerance.