vice.imf.salpeter¶
The (unnormalized) Salpeter (1955) 1 stellar initial mass function (IMF).
Signature: vice.imf.salpeter(mass)
New in version 1.1.0.
Parameters¶
- massreal number
The stellar mass in solar masses.
Returns¶
- dndmreal number
The unnormalized value of the Salpeter IMF at that stellar mass, defined by:
\[\frac{dN}{dm} \propto m^{-\alpha}\]where \(\alpha\) = 2.35 always.
Raises¶
- TypeError
mass is not a real number
- ValueError
mass is non-positive