# Dialectic
Mathematical logic implementation using python.
### Installation
```
pip install dialectic
```
### Usage
```python
# Import Atomic class
from dialectic import Atomic
# Build Atomic objects
a = Atomic('a')
b = Atomic('b')
# Invert
invert = ~a
# Conjunction
conjunction = (a & b)
# Disjunction
disjunction = (a | b)
# Implication
implication = (a > b)
# Equality (iff)
equality = (a == b)
# Validation with given sentence set
disjunction.validate({a})
# Parsing a sentence list
from dialectic import parse_sentences
parsed_set = parse_sentences([implication, a])
```
PyPI 官网下载 | dialectic-0.3.0a4.tar.gz
版权申诉
118 浏览量
2022-01-10
13:34:13
上传
评论
收藏 2KB GZ 举报
![avatar](https://profile-avatar.csdnimg.cn/277f6345dca0446498fbbc03843436aa_qq_38161040.jpg!1)
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
最新资源
- tensorflow-2.8.2-cp310-cp310-win-amd64.whl
- tensorflow-2.8.1-cp39-cp39-win-amd64.whl
- 基于Cadence-All...PCB信号完整性分析与设计-巫玲.pdf
- tensorflow-gpu-2.8.2-cp310-cp310-win-amd64.whl
- 基于Springboot的大学生租房系统(有报告) Javaee项目,springboot项目
- 视频打赏观看视频系统源码.zip
- 基于Cadence-Sigrity板级的电热协同仿真-封云鹏.pdf
- 基于Springboot的会员制医疗预约服务管理信息系统(有报告) Javaee项目,springboot项目
- MySQL忘记root密码解决方案
- thinkphp云赏修复版视频打赏V8.5网站源码.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)