Skip to main content

A Python library with mathematical and string utilities

Project description

A Python library
Thư viện hỗ trợ toán học do Nguyễn Mạnh Hiếu (Học Sinh Trường THCS & THPT BA HÒN ) phát triển, giúp xử lý thông tin nhanh chóng, hỗ trợ lập trình hiệu quả.

pip install hieudz hoặc pip install hieudzbahon ( chọn 1 trong 2 nếu lỗi ) 
Usage
python

import hieudz
HOW TO USE : hieudz.funcion() ( example : hieudz.help() , hieudz.songuyento(n,m) )
# Tìm số nguyên tố từ 1 đến 10
print(hieudz.songuyento(1, 10))  # Output: [2, 3, 5, 7]

# Tách chữ số
m = []
print(hieudz.tachds(345, m))  # Output: [3, 4, 5]

# Chuẩn hóa chuỗi
print(hieudz.dinhgiang(" ( Hoc , hoc nua , hoc mai ) "))  # Output: (Hoc, hoc nua, hoc mai)

# Xem danh sách hàm
import hdz<help
hieudz.help()  # In danh sách hàm

# Xem mã nguồn hàm
import hdz<code
hieudz.code("dinhgiang")  # In mã nguồn hàm dinhgiang
Functions
songuyento(n, m): Trả về danh sách các số nguyên tố từ n đến m.

tachds(n, m): Tách từng chữ số của n vào danh sách m.

uocchung(n, m): Tìm các ước chung của n  m.

boichung(n, m): Tìm các bội chung của n  m.

uoclonnhat(n): Tìm ước lớn nhất của n.

nguyento(n): Kiểm tra xem n  phải số nguyên tố không.

sohoanhao(n): Kiểm tra xem n  phải số hoàn hảo không.

phantich(n): Phân tích n thành các thừa số nguyên tố.

daonguoc(n): Đảo ngược số n.

tamgiac(a, b, c): Kiểm tra ba cạnh  tạo thành tam giác hợp lệ không.

dinhgiang(n): Chuẩn hóa chuỗi n.

hieudz.help(): Liệt  tất cả các hàm.

hieudz.code("func_name"): Hiển thị  nguồn của một hàm.

License
MIT License

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

hieudzbahon-0.1.4.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

hieudzbahon-0.1.4-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file hieudzbahon-0.1.4.tar.gz.

File metadata

  • Download URL: hieudzbahon-0.1.4.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for hieudzbahon-0.1.4.tar.gz
Algorithm Hash digest
SHA256 d4d4c6e36d591e20e2aa08fe6dbc645e6710462803b2c13768da99635c012a4b
MD5 9360ff2570be4f5b8845d98dfbd9870a
BLAKE2b-256 9093ff593526d46c1275d3afab21e46fcf856cac357c56f386fef5fe43b17633

See more details on using hashes here.

File details

Details for the file hieudzbahon-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: hieudzbahon-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for hieudzbahon-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9ce7d41223e8976f560cbe998be6e0822c4238fd0455bffe906ed49e470fa90e
MD5 1d6a87e4e9d08d76e496717c385549a5
BLAKE2b-256 a33fe44dd57f1233997de21481002adad31f141d9db1b7ffe52307f38522db34

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