常用数学和物理常数的python包。
konstants的Python项目详细描述
常量列表
Python package for common math and physics constants.
这是一个基本而简单的python包,其中包含所有常用的数学和物理常量,如pi、e等。该包并不完整,只要我有空就会更新。欢迎发明者。
安装
Windows、OS X和Linux:pip install konstants
用法
这个模块很容易使用。只需从here中搜索要使用的常量并导入它要导入,请按照下面的代码段操作:
from konstants.math import basic as b
from konstants.math import eDerivatives as ed
from konstants.math import piDerivatives as pd
from konstants.math import named as n
from konstants.phys import fundamental as f
from konstants.phys import astrophysical as a
from konstants.misc import biblical as bi
from konstants.misc import interesting as i
print(b.pi)
print(b.e)
print(ed.eie)
print(pd.pip)
print(n.her)
print(n.ape)
print(f.amc)
print(a.par)
print(bi.ht)
print(i.ans)
发布历史记录
- 0.0.3分
- 添加了其他重要数字
- 0.0.2分
- 添加了更多常量
- 0.0.1分
- 创建的包
元
贾斯汀·马修-@thisismjustin-thisisjustinm@outlook.com