nonlinear_scale_residual#

cosmicjellyfish.cosmology.jaxcosmo_halofit.nonlinear_scale_residual(cosmo, a, transfer_fn)[source]#

|growth^2 sigma^2(R_nl) - 1| at the Newton solution (~1e-15 when converged).

Also returns whether the solution lies strictly inside the Newton bracket. Intended for tests and diagnostics: the traced halofit() has no data-dependent branches to report a failed solve, so convergence is verified here instead.