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 hieudzbahon999 ( 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

hieudzbahon999-0.1.6.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

hieudzbahon999-0.1.6-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file hieudzbahon999-0.1.6.tar.gz.

File metadata

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

File hashes

Hashes for hieudzbahon999-0.1.6.tar.gz
Algorithm Hash digest
SHA256 e680c2f6f01f20b7514dc7b93bd27294656d0291ad1ed4d5f43aa28ce3649ce6
MD5 70694febce33639636954dc5d2a53970
BLAKE2b-256 e3a24e1f77a7d04c3a41d09c7e38862c4e3835d8dd74d89ab0644b2946d05dcf

See more details on using hashes here.

File details

Details for the file hieudzbahon999-0.1.6-py3-none-any.whl.

File metadata

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

File hashes

Hashes for hieudzbahon999-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 aaa4c455343fb4ef3c4e85dd7143b6935be991a510b0b83f6b2b786e6cea1959
MD5 282ee54f3c44bc4bfa6c6b74da667122
BLAKE2b-256 6047e001e6ee3f6b7076a0165aef4a2f943c01163654369907bc962cde55cd56

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