How to use Z0 (characteristic impedance of vacuum) constant in SciPy/NumPy
If you want to use the Z0
constant (characteristic impedance of free space) in Python, use this snippet:
import scipy.constants
Z0 = scipy.constants.physical_constants['characteristic impedance of vacuum'][0]
print(Z0) # 376.73031346177066
In contrast to other constants, Z0
is not available directly likeĀ scipy.constants.pi
but you need to use theĀ scipy.constants.physical_constants
dict in order to access it.