reduced_mass¶
-
plasmapy.particles.
reduced_mass
(test_particle, target_particle) → astropy.units.quantity.Quantity¶ Find the reduced mass between two particles.
- Parameters
Quantity – The test particle as represented by a string, an integer representing atomic number, a
Particle
object, or aQuantity
orConstant
with units of mass.Constant (or) – The test particle as represented by a string, an integer representing atomic number, a
Particle
object, or aQuantity
orConstant
with units of mass.
- Returns
reduced_mass – The reduced mass between the test particle and target particle.
- Return type
- Raises
InvalidParticleError – If either particle is invalid.
UnitConversionError – If an argument is a
Quantity
orConstant
but does not have units of mass.MissingParticleDataError – If the mass of either particle is not known.
TypeError – If either argument is not a
str
,int
,Particle
,Quantity
, orConstant
.
Example
>>> from astropy import units as u >>> reduced_mass('p+', 'e-') <Quantity 9.104425e-31 kg> >>> reduced_mass(5.4e-27 * u.kg, 8.6e-27 * u.kg) <Quantity 3.31714286e-27 kg>