pmutt.constants.m_p

pmutt.constants.m_p(units)

Mass of a proton

Parameters:

units (str) –

Units for m_p. Supported units

Unit

Description

Value

kg

Kilograms

1.6726219e-27

g

Grams

1.6726219e-24

amu

Atomic mass units

1.007276466879

Returns:

m_p – Mass of proton in appropriate units

Return type:

float

Raises:

KeyError – If units is not supported.