hinhoc 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ from .core import (
2
+ chu_vi_hinh_tron, dien_tich_hinh_tron,
3
+ chu_vi_hinh_chu_nhat, dien_tich_hinh_chu_nhat,
4
+ chu_vi_hinh_vuong, dien_tich_hinh_vuong,
5
+ chu_vi_hinh_tam_giac, dien_tich_hinh_tam_giac
6
+ )
@@ -0,0 +1,26 @@
1
+ import math
2
+
3
+ def chu_vi_hinh_tron(r):
4
+ return 2 * math.pi * r
5
+
6
+ def dien_tich_hinh_tron(r):
7
+ return math.pi * r**2
8
+
9
+ def chu_vi_hinh_chu_nhat(dai, rong):
10
+ return 2 * (dai + rong)
11
+
12
+ def dien_tich_hinh_chu_nhat(dai, rong):
13
+ return dai * rong
14
+
15
+ def chu_vi_hinh_vuong(canh):
16
+ return 4 * canh
17
+
18
+ def dien_tich_hinh_vuong(canh):
19
+ return canh**2
20
+
21
+ def chu_vi_hinh_tam_giac(a, b, c):
22
+ return a + b + c
23
+
24
+ def dien_tich_hinh_tam_giac(a, b, c):
25
+ p = (a + b + c) / 2
26
+ return math.sqrt(p * (p - a) * (p - b) * (p - c))
hinhoc-0.1.0/LICENSE ADDED
File without changes
hinhoc-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,17 @@
1
+ Metadata-Version: 2.4
2
+ Name: hinhoc
3
+ Version: 0.1.0
4
+ Summary: Thư viện tính chu vi, diện tích các loại hình học cơ bản
5
+ Author: Hoang Thuy
6
+ License: MIT
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: OS Independent
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Dynamic: author
13
+ Dynamic: classifier
14
+ Dynamic: description-content-type
15
+ Dynamic: license
16
+ Dynamic: license-file
17
+ Dynamic: summary
hinhoc-0.1.0/README.md ADDED
File without changes
@@ -0,0 +1,17 @@
1
+ Metadata-Version: 2.4
2
+ Name: hinhoc
3
+ Version: 0.1.0
4
+ Summary: Thư viện tính chu vi, diện tích các loại hình học cơ bản
5
+ Author: Hoang Thuy
6
+ License: MIT
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: OS Independent
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Dynamic: author
13
+ Dynamic: classifier
14
+ Dynamic: description-content-type
15
+ Dynamic: license
16
+ Dynamic: license-file
17
+ Dynamic: summary
@@ -0,0 +1,9 @@
1
+ LICENSE
2
+ README.md
3
+ setup.py
4
+ Hinhhoc/__init__.py
5
+ Hinhhoc/core.py
6
+ hinhoc.egg-info/PKG-INFO
7
+ hinhoc.egg-info/SOURCES.txt
8
+ hinhoc.egg-info/dependency_links.txt
9
+ hinhoc.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ Hinhhoc
hinhoc-0.1.0/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
hinhoc-0.1.0/setup.py ADDED
@@ -0,0 +1,17 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ setup(
4
+ name="hinhoc",
5
+ version="0.1.0",
6
+ packages=find_packages(),
7
+ author="Hoang Thuy",
8
+ description="Thư viện tính chu vi, diện tích các loại hình học cơ bản",
9
+ long_description=open("README.md", encoding="utf-8").read(),
10
+ long_description_content_type="text/markdown",
11
+ license="MIT",
12
+ classifiers=[
13
+ "Programming Language :: Python :: 3",
14
+ "License :: OSI Approved :: MIT License",
15
+ "Operating System :: OS Independent",
16
+ ],
17
+ )