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.5.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.5-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hieudzbahon999-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 cce37e0495a6db6110b715c856897dbf42779cc42f30f78577862f61983820c4
MD5 1effc8fc773a3606caf5da6cd7bd1797
BLAKE2b-256 54b08d4f7a836780123ef333e387cb014414d54c45a86b66ccb85ec6e5d2faf5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hieudzbahon999-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7d4dbf63766cb32cdc4ba8d99aa0b0fe8650e1c4dd7f61144417c6aa3d428e6f
MD5 5321572a0b004edc504635c79cea0b2f
BLAKE2b-256 6c0acd8c2cc94354b246cfcdbb1b09ec052554be0c8bc12f5e9c9508802c3478

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