Skip to main content
`Ctrl`+`K`
scipy.constants.

# precision

scipy.constants.precision(key)

  Relative precision in physical_constants indexed by key.

  Parameters:
    key str

      Key in dictionary `physical_constants`

  Returns:
    prec float

      Relative precision in `physical_constants` corresponding to key

  Notes

  Array API Standard Support

  `precision` is not in-scope for support of Python Array API Standard compatible backends other than NumPy.

  See Support for the array API standard for more information.

  Examples

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