Skip to main content

Thư Viện phutoan_toanhoc_th2911

Thư viện hỗ trợ tính toán toán học và hình học cơ bản viết bằng Python.

  • Tác giả: Nguyễn Phú Toàn
  • Lớp: TH29.11
  • Khoa: Công Nghệ Thông Tin - HUBT

Các chức năng chính

  1. 4 phép tính cơ bản:
    • cong(a, b): Tính tổng $a + b$
    • tru(a, b): Tính hiệu $a - b$
    • nhan(a, b): Tính tích $a \times b$
    • chia(a, b): Tính thương $a / b$ (có kiểm tra chia cho 0 an toàn)
  2. Hình học cơ bản:
    • chuvi_hcn(dai, rong): Tính chu vi hình chữ nhật
    • dientich_hcn(dai, rong): Tính diện tích hình chữ nhật

Hướng dẫn cài đặt

pip install phutoan_toanhoc_th2911

Hoặc cài đặt từ mã nguồn cục bộ:

pip install -e .

Ví dụ sử dụng

from phutoan_toanhoc import cong, tru, nhan, chia, chuvi_hcn, dientich_hcn

print("Tổng:", cong(10, 5))          # 15
print("Hiệu:", tru(10, 5))          # 5
print("Tích:", nhan(10, 5))         # 50
print("Thương:", chia(10, 5))       # 2.0
print("Chu vi HCN:", chuvi_hcn(8, 4))      # 24
print("Diện tích HCN:", dientich_hcn(8, 4)) # 32

Release files for phutoan-toanhoc-th2911 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for phutoan-toanhoc-th2911 0.1.0
File Size Uploaded
phutoan_toanhoc_th2911-0.1.0.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for phutoan-toanhoc-th2911 0.1.0
File Interpreter ABI Platform
phutoan_toanhoc_th2911-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.5 kB

Release files / phutoan_toanhoc_th2911-0.1.0.tar.gz

Download URL phutoan_toanhoc_th2911-0.1.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6868957824eaedd374a09d21079ef0caefa92efc8389be3a545fc385b6287986
BLAKE2b-256 checksum
How to use checksums
84223cdce1b5ad991eac2dc3778d35ac28e89bc1185db1e2f180313696992339
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Release files / phutoan_toanhoc_th2911-0.1.0-py3-none-any.whl

Download URL phutoan_toanhoc_th2911-0.1.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a7c1078e1296430c37f521ed36edfe2cc39e5b0d0da5002d707982aab918b1b
BLAKE2b-256 checksum
How to use checksums
943fbcbeeeda648cf112a67c55fecb44551e7672a8d36585618d6f0c923a2a66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page