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.8.tar.gz (6.1 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.8-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hieudzbahon999-0.1.8.tar.gz
  • Upload date:
  • Size: 6.1 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.8.tar.gz
Algorithm Hash digest
SHA256 a910b8854cb23ff92fa7d68a350471bbe3a3f45bb7c17705e753d1f96df5c9ae
MD5 e403030cec5843afd4effdd247d50f35
BLAKE2b-256 1d4e0f503b218aaee68885ef414882e3650fe59e646c05f5f27b557e2c10bd24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hieudzbahon999-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 6.8 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 dfc7257882a0deafbec72031d83279755a928f82a785d1ada98a9c05fa8f9ef3
MD5 a81a60f2f3ca0a85d725c62da9183162
BLAKE2b-256 77a1a19bdc6a33cf5b0a5c316b80bc4255207644691f7b562c0b4eaefcff9626

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