scipy.constants.

精度#

scipy.constants.precision(key)[源]#

在由 key 索引的 physical_constants 中的相对精度

参数:
keyPython 字符串

字典 physical_constants 中的键

返回:
prec浮点数

physical_constants 中对应于 key 的相对精度

示例

>>> from scipy import constants
>>> constants.precision('proton mass')
5.1e-37