fastar.imf.named_imf.single_power_law

fastar.imf.named_imf.single_power_law#

Single Power Law (honoring Salpeter’s visionary work https://ui.adsabs.harvard.edu/abs/1955ApJ…121..161S)

Functions

single_power_law(mass, params)

Wrapper for the Salpeter IMF using a parameter dictionary.

single_power_law_raw(mass[, m_min, m_max, alpha])

Returns the normalized Salpeter IMF evaluated at mass over the range [m_min, m_max], fully JAX-compatible with numerical normalization.

fastar.imf.named_imf.single_power_law.single_power_law(mass, params)[source]#

Wrapper for the Salpeter IMF using a parameter dictionary.

Parameters:
  • mass (array-like) – Stellar mass or array of masses.

  • params (dict) – Dictionary of parameters to pass to single_powerlaw_raw.

Returns:

Normalized IMF values.

Return type:

jnp.ndarray or float

fastar.imf.named_imf.single_power_law.single_power_law_raw(mass, m_min=0.1, m_max=100.0, alpha=2.35)[source]#

Returns the normalized Salpeter IMF evaluated at mass over the range [m_min, m_max], fully JAX-compatible with numerical normalization.

Parameters:
  • mass (array-like) – Stellar mass or array of masses.

  • m_min (float, optional) – Lower mass limit of the IMF. Default is 0.1.

  • m_max (float, optional) – Upper mass limit of the IMF. Default is 100.0.

  • alpha (float, optional) – Power-law slope. Default is 2.35.

Returns:

Normalized IMF values for the input mass(es).

Return type:

jnp.ndarray or float