This is documentation for an old release of SciPy (version 0.17.1). Read this page in the documentation of the latest stable release (version 1.15.1).
scipy.constants.unit¶
- scipy.constants.unit(key)[source]¶
Unit in physical_constants indexed by key
Parameters: key : Python string or unicode
Key in dictionary physical_constants
Returns: unit : Python string
Unit in physical_constants corresponding to key
See also
- codata
- Contains the description of physical_constants, which, as a dictionary literal object, does not itself possess a docstring.
Examples
>>> from scipy import constants >>> constants.unit(u'proton mass') 'kg'