This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / constants / _codata / value

function

scipy.constants._codata:value

source: build-install/usr/lib/python3.14/site-packages/scipy/constants/_codata.py:2129

Signature

def value(key: str) → float

Summary

Value in physical_constants indexed by key.

Parameters

key : str

Key in dictionary physical_constants

Returns

value : float

Value in physical_constants corresponding to key

Notes

Array API Standard Support

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

See dev-arrayapi for more information.

Examples

from scipy import constants
constants.value('elementary charge')
✓
1.602176634e-19

Aliases

  • scipy.constants.value