radial_profiles.einasto_mass_profile#

radial_profiles.einasto_mass_profile(M, r_s, n)[source]#

A mass profile where the logarithmic slope is a power-law [Eina65]. The form here is that given in Section 2 of [RvGB12].

Parameters:
  • M (float) – The total mass of the profile in M.

  • r_s (float) – The scale radius in kpc.

  • n (float) – The inverse power-law index.

Returns:

The corresponding radial profile object.

Return type:

RadialProfile