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.
- hinhoc-0.1.0/Hinhhoc/__init__.py +6 -0
- hinhoc-0.1.0/Hinhhoc/core.py +26 -0
- hinhoc-0.1.0/LICENSE +0 -0
- hinhoc-0.1.0/PKG-INFO +17 -0
- hinhoc-0.1.0/README.md +0 -0
- hinhoc-0.1.0/hinhoc.egg-info/PKG-INFO +17 -0
- hinhoc-0.1.0/hinhoc.egg-info/SOURCES.txt +9 -0
- hinhoc-0.1.0/hinhoc.egg-info/dependency_links.txt +1 -0
- hinhoc-0.1.0/hinhoc.egg-info/top_level.txt +1 -0
- hinhoc-0.1.0/setup.cfg +4 -0
- hinhoc-0.1.0/setup.py +17 -0
|
@@ -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 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Hinhhoc
|
hinhoc-0.1.0/setup.cfg
ADDED
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
|
+
)
|