Implementasi Himpunan Python untuk Tugas Matematika Diskrit
Project description
Implementasi Himpunan Python (Tugas Matdis)
Ini adalah sebuah paket Python sederhana yang mengimplementasikan konsep Himpunan (Set) untuk tugas mata kuliah Matematika Diskrit.
Paket ini dibuat murni menggunakan Python, tanpa bergantung pada set bawaan Python, dan menggunakan magic methods untuk operasi himpunan.
✨ Fitur
Kelas Himpunan ini mendukung operasi-operasi berikut:
- Gabungan (Union):
h1 + h2 - Irisan (Intersect):
h1 / h2 - Selisih (Difference):
h1 - h2 - Selisih Simetris:
h1 * h2 - Cartesian Product:
h1 ** h2 - Pengecekan Subset:
h1 <= h2(subset) atauh1 < h2(proper subset) - Pengecekan Superset:
h1 >= h2 - Pengecekan Kesamaan:
h1 == h2 - Komplemen:
h1.komplement(S) - Himpunan Kuasa (Power Set):
h1.ListKuasa() - Kardinalitas Himpunan Kuasa:
abs(h1)
📦 Instalasi
Kamu bisa meng-install paket ini menggunakan pip:
pip install himpunan-sigma==0.2.1
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file himpunan_sigma-0.2.2.tar.gz.
File metadata
- Download URL: himpunan_sigma-0.2.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25a4575671016e02fefa60a78788c51e3ef8f86f80a1081de9b3cb9e55ecf719
|
|
| MD5 |
f5d2e41719fbabf05097419b127085e5
|
|
| BLAKE2b-256 |
3ce329e3b27394644b57ac5ac34901c938bc3473427916bf78ab47b5ac471ee0
|
File details
Details for the file himpunan_sigma-0.2.2-py3-none-any.whl.
File metadata
- Download URL: himpunan_sigma-0.2.2-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3149087be8801ab5ab2ba42f3c6785690ba170824c838e005b72b554a037cd1
|
|
| MD5 |
949a8e797da4b44bc4f0d72ef298c58e
|
|
| BLAKE2b-256 |
6029777de395e11d6fcc7fe5c90541a402aa4385ae6a30fe8dfea1f59a2efca4
|