pisces.math_utils.integration#

Integration methods for Pisces.

This module provides numerical integration routines for computing enclosed mass profiles and cumulative integrals of functions defined over radial profiles. These methods are useful for astrophysical applications where analytical solutions are not feasible or practical.

Functions

compute_lame_emden_solution(xi_max[, n, ...])

Compute a numerical solution to the Lane-Emden equation for a given polytropic index \(n\).

integrate(profile, rr[, rmax])

Compute cumulative integral from each radius \(r\) to \(r_{\mathrm{max}}\).

integrate_mass(profile, rr, **kwargs)

Compute enclosed mass profile via numerical integration.

integrate_toinf(profile, rr[, rmax])

Compute cumulative integral from each radius \(r\) to infinity.