如何在 SciPy/NumPy 中使用 Z0(真空特性阻抗)常量
如果你想在 Python 中使用 Z0 常量(自由空间特性阻抗),使用此代码片段:
z0_scipy.py
import scipy.constants
Z0 = scipy.constants.physical_constants['characteristic impedance of vacuum'][0]
print(Z0) # 376.73031346177066与其他常量不同,Z0 不像 scipy.constants.pi 那样直接可用,你需要使用 scipy.constants.physical_constants 字典来访问它。
Check out similar posts by category:
Mathematics, Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow