vice.imf.kroupa¶
The (unnormalized) Kroupa (2001) 1 stellar initial mass function (IMF).
Signature: vice.imf.kroupa(mass)
New in version 1.1.0.
Parameters¶
- massreal number
The stellar mass in solar masses.
Returns¶
- dndmreal number
The unnormalized value of the Kroupa IMF at that stellar mass, defined by:
\[\frac{dN}{dm} \propto m^{-\alpha}\]where \(\alpha\) = 2.3, 1.3, and 0.3 for \(m\) > 0.5, 0.08 \(\leq m \leq\) 0.5, and \(m\) < 0.08, respectively.
Raises¶
- TypeError
mass is not a real number
- ValueError
mass is non-positive