Metadata-Version: 2.4
Name: nbphy
Version: 0.1.0
Summary: python基础物理计算库
Author-email: tc0512 <tancheng_0812@qq.com>
License: MIT
Project-URL: Homepage, https://github.com/tc0512/nbphy
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: prettytable>=3.15.0
Dynamic: license-file

# nbphy
python基础物理库，可以做一些基础的物理计算

## 快速开始
```python
import nbphy
F = nbphy.force(100, "N") #力100N
s = nbphy.displacement(5, "m") #距离5m
W = F*s #500
print(W)
```

## 模块介绍
### `core`核心模块
- `displacement`距离 `force`力 `work`功
- `time`时间 `lever`杠杆 `velocity`速度
- `density`密度 `pressure`压强 `tabular`表格绘制函数
### `nbphy.const`常量模块
- `g`重力加速度 `c`光速
- `pi`圆周率 `density_of_water`水的密度

## 示例代码
```python
import nbphy
field = ["钩码质量(g)", "弹簧测力计示数(N)"]
row = [
    [50, 0.5],
    [100, 1],
    [150, 1.5],
    [200, 2]
]
print(nbphy.tabular(field, row))
data = [3.40, 3.45, 3.47]
print(nbphy.average(data))
```

## 许可证
MIT
