Skip to main content

Implementasi konsep Himpunan untuk Matematika Diskrit (tanpa menggunakan set bawaan).

Project description

himpunanmatdis

Implementasi konsep Himpunan (Set) untuk mata kuliah Matematika Diskrit tanpa menggunakan set() bawaan Python.

Fitur

  • Gabungan (+)
  • Irisan (/)
  • Selisih (-)
  • Selisih Simetris (*)
  • Ekuivalensi (//)
  • Subset, Proper Subset, Superset
  • Komplemen
  • Himpunan Kuasa (abs)
  • Produk Kartesius (**)

Contoh Penggunaan

from himpunanmatdis.himpunan import Himpunan

S = Himpunan(1,2,3,4,5,6,7,8,9)
h1 = Himpunan(1, 2, 3)
h2 = Himpunan(3, 4, 5)

print(len(h1))      # 3
print(3 in h1)      # True
print(h1 == h2)     # False

h3 = h1 / h2        # Irisan
print(h3)           # {3}

h4 = h1 + h2        # Gabungan
print(h4)           # {1, 2, 3, 4, 5}

h5 = h1 - h2        # Selisih
print(h5)           # {1, 2}

print(abs(h1))      # Himpunan Kuasa

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

himpunanmatdis-1.0.0.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

himpunanmatdis-1.0.0-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file himpunanmatdis-1.0.0.tar.gz.

File metadata

  • Download URL: himpunanmatdis-1.0.0.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for himpunanmatdis-1.0.0.tar.gz
Algorithm Hash digest
SHA256 32c89b5bcaf7a52bca3b4aea2a326855ddd7cbc5c3fe3d13b2163226d2cc1aa2
MD5 78e00bd10b4e3501f862ae23755ddb1c
BLAKE2b-256 86760df6781b947470c59fae0e96bf21b7161becad14b6e19d41d9632dc82364

See more details on using hashes here.

File details

Details for the file himpunanmatdis-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: himpunanmatdis-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for himpunanmatdis-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cbe91bfe2520e0652624538f6b94bbf07f91f4ecd17929aedeb8e73ce7a67b3b
MD5 f07099628d76ea961ed243bce9d3bf7e
BLAKE2b-256 c9f348b28dea277922ae27dcc07acde2a903cb8c4a0d82c615c3c16eb1a02b05

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page