Tính ươc và bội
Project description
Dùng uoc-va-boi
Cách đùng nó:
Bước 1:
- Cài đặt
pip install uoc-va-boi
Bước 2:
- Gọi module
import uoc-va-boi
Bươc 3:
- Dùng
import uoc-va-boi
# Tìm Ươc của 12
print(uoc-va-boi.uoc(12))
# Tìm Ươc chung của 12, 10
print(uoc-va-boi.uoc_chung(12, 10))
# Tìm Ươc chung lớn nhất của 12, 10
print(uoc-va-boi.uoc_chung_max(12, 10))
# Tìm Bội của 12, biết số lượng là 10
print(uoc-va-boi.boi(12, 10))
# Tìm Bội chung của 12, 10; biết số lượng là 10
print(uoc-va-boi.boi_chung(12, 10, 10))
# Tìm Ươc chung lớn nhất của 12, 10; biết số lượng là 10
print(uoc-va-boi.uoc_chung_min(12, 10, 10))
Kết Quả
{1, 2, 3, 4, 6, 12}
{1, 2}
2
{0, 96, 36, 72, 12, 108, 120, 48, 84, 24, 60}
{0, 60}
60
Các cấu trúc:
| Tên hàm | Cấu trúc | Ý nghĩa |
|---|---|---|
uoc |
uoc(a) | a: là số cần tìm ước |
uoc_chung |
uoc_chung(a, b) | a,b: là số cần tìm ƯC(a,b) |
uoc_chung_max |
uoc_chung_max(a,b) | a,b: là số cần tìm ƯCLN(a,b) |
boi |
boi(a, so_luong) | a:là số cần tìm bội, so_luong: là số lượng bao nhieu |
boi_chung |
boi_chung(a,b, so_luong) | a,b:là số cần tìm BC(a,b), so_luong: là số lượng bao nhieu |
boi_chung_min |
boi_chung_min(a,b, so_luong) | a,b:là số cần tìm BCNN(a,b), so_luong: là số lượng bao nhieu |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
uoc_va_boi-1.0.tar.gz
(2.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file uoc_va_boi-1.0.tar.gz.
File metadata
- Download URL: uoc_va_boi-1.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
542b084a5cd1aee72199112680dcb9ac9343102da52bfe23ce070e2c7db651de
|
|
| MD5 |
93d88c4677fdfcae1dc0d2ba3a6860d9
|
|
| BLAKE2b-256 |
908e62d94064803b22c0463c14105fe256b9ab7b98c1e54b9028b4a53e3b0be4
|
File details
Details for the file uoc_va_boi-1.0-py3-none-any.whl.
File metadata
- Download URL: uoc_va_boi-1.0-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a4b1a7a6f2fa6228a4960f67dfbce1aa9122e2e2dfc1b4f9449b4f25e4d9d88
|
|
| MD5 |
6ebb89a1c6e2289b67a42672802fa997
|
|
| BLAKE2b-256 |
66aa51f5e0236a0e25df23c379f65ac019ade969122368b28260bd45d509c0b0
|