Metadata-Version: 2.4
Name: pnwratproject
Version: 0.1.1
Summary: A Python Package for evaluating relative propositional functions, logical relations, and equivalence.
Project-URL: Homepage, https://github.com/username/pnwratproject
Project-URL: Documentation, https://github.com/username/pnwratproject#readme
Project-URL: Repository, https://github.com/username/pnwratproject.git
Project-URL: Bug Tracker, https://github.com/username/pnwratproject/issues
Author-email: Nawarat <nawarat.ch@mail.wu.ac.th>
License: MIT
License-File: LICENSE
Keywords: functional relations,logic,logical equivalence,mathematical logic,propositional logic,relative functions
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.8
Description-Content-Type: text/markdown

## pnwratproject

ตัวอย่าง Python Package ด้านตรรกศาสตร์และคณิตศาสตร์ดิสครีต ที่พัฒนาด้วยมาตรฐาน **PEP 517** และ **PEP 621**

---

## คำอธิบายแพ็คเกจ (Description)

แพ็คเกจนี้พัฒนาขึ้นเพื่อใช้ในการคำนวณและตรวจสอบโครงสร้างตรรกศาสตร์ทางคณิตศาสตร์ ประกอบด้วย 3 โมดูลหลัก:

* **`propositional`** : คำนวณค่าความจริงของตัวเชื่อมประพจน์พื้นฐาน (NOT, AND, OR, IMPLIES, IFF)
* **`equivalence`** : ตรวจสอบการสมมูล สัจนิรันดร์ ข้อขัดแย้ง และกฎ De Morgan
* **`relations_functions`** : ตรวจสอบคุณสมบัติของความสัมพันธ์ (Reflexive, Symmetric, Transitive) และฟังก์ชัน (Function, 1-to-1)

---

## การติดตั้ง (Installation)

### สำหรับผู้ใช้งานทั่วไป
```bash
pip install pnwratproject
```
### สำหรับนักพัฒนา
```bash
pip install -e .
```

## ตัวอย่างการใช้งาน

```python
import myproject as pkg

# 1. ใช้งานตรรกศาสตร์ประพจน์
print(pkg.AND(True, False))        # Output: False
print(pkg.IMPLIES(True, False))    # Output: False

# 2. ตรวจสอบคุณสมบัติความสัมพันธ์
domain = [1, 2, 3]
relation = [(1, 1), (2, 2), (3, 3)]
print(pkg.is_reflexive(domain, relation)) # Output: True

# 3. ตรวจสอบฟังก์ชัน
f1 = [(1, 'a'), (2, 'b'), (3, 'c')]
print(pkg.is_function(domain, f1))        # Output: True
```