mathmore 1.0.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.
- mathmore-1.0.0/PKG-INFO +14 -0
- mathmore-1.0.0/README.md +3 -0
- mathmore-1.0.0/pyproject.toml +15 -0
- mathmore-1.0.0/setup.cfg +4 -0
- mathmore-1.0.0/src/mathmore/__init__.py +0 -0
- mathmore-1.0.0/src/mathmore/mathmore.py +54 -0
- mathmore-1.0.0/src/mathmore.egg-info/PKG-INFO +14 -0
- mathmore-1.0.0/src/mathmore.egg-info/SOURCES.txt +8 -0
- mathmore-1.0.0/src/mathmore.egg-info/dependency_links.txt +1 -0
- mathmore-1.0.0/src/mathmore.egg-info/top_level.txt +1 -0
mathmore-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mathmore
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: The extension of the math module.
|
|
5
|
+
Author: HZY
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Operating System :: OS Independent
|
|
9
|
+
Requires-Python: >=3.9
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
|
|
12
|
+
This is a simple example package. You can use
|
|
13
|
+
[GitHub-flavored Markdown](https://guides.github.com/features/mastering-markdown/)
|
|
14
|
+
to write your content.
|
mathmore-1.0.0/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "mathmore"
|
|
3
|
+
version = "1.0.0"
|
|
4
|
+
authors = [
|
|
5
|
+
{ name="HZY"}
|
|
6
|
+
]
|
|
7
|
+
description = "The extension of the math module."
|
|
8
|
+
readme = "README.md"
|
|
9
|
+
requires-python = ">=3.9"
|
|
10
|
+
classifiers = [
|
|
11
|
+
"Programming Language :: Python :: 3",
|
|
12
|
+
"Operating System :: OS Independent",
|
|
13
|
+
]
|
|
14
|
+
license = "MIT"
|
|
15
|
+
license-files = ["LICEN[CS]E*"]
|
mathmore-1.0.0/setup.cfg
ADDED
|
File without changes
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
def info():
|
|
2
|
+
return '''
|
|
3
|
+
This module is made by HZY.
|
|
4
|
+
This is a mathematical module.
|
|
5
|
+
Now,the version of the module is 1.0.1.
|
|
6
|
+
'''
|
|
7
|
+
|
|
8
|
+
def root_of_unity(exponent):
|
|
9
|
+
import cmath
|
|
10
|
+
list_root=[]
|
|
11
|
+
for term in range(0,exponent):
|
|
12
|
+
item=2*term/exponent
|
|
13
|
+
in_list=cmath.exp(item*(1j)*cmath.pi)
|
|
14
|
+
real=in_list.real
|
|
15
|
+
imag=in_list.imag
|
|
16
|
+
if abs(in_list.imag)<=1e-10:
|
|
17
|
+
imag=0
|
|
18
|
+
in_list=real+imag*(1j)
|
|
19
|
+
if abs(in_list.real-round(in_list.real,5))<=1e-10:
|
|
20
|
+
real=round(in_list.real,5)
|
|
21
|
+
in_list=real+imag*(1j)
|
|
22
|
+
list_root.append(in_list)
|
|
23
|
+
return list_root
|
|
24
|
+
|
|
25
|
+
def distance(tuple1,tuple2):
|
|
26
|
+
from math import sqrt
|
|
27
|
+
if tuple1==():
|
|
28
|
+
tuple1=(0,0)
|
|
29
|
+
if tuple2==():
|
|
30
|
+
tuple2=(0,0)
|
|
31
|
+
if len(tuple1)>2 or len(tuple1)==1 or len(tuple2)>2 or len(tuple2)==1:
|
|
32
|
+
raise SyntaxError
|
|
33
|
+
dist=sqrt((tuple1[0]-tuple2[0])**2+(tuple1[1]-tuple2[1])**2)
|
|
34
|
+
return dist
|
|
35
|
+
|
|
36
|
+
omega=0.567143290409784
|
|
37
|
+
gamma=0.577215664901533
|
|
38
|
+
|
|
39
|
+
def get_help():
|
|
40
|
+
help="""
|
|
41
|
+
This module is made by HZY.
|
|
42
|
+
FUCTIONS:
|
|
43
|
+
get_version() You can get the version of the module.(Now,the version of the module is 1.0.1.)
|
|
44
|
+
info() You can get the informations of the module.
|
|
45
|
+
get_help() You can get all the functions and usages of the module.
|
|
46
|
+
root_of_unity(exponent) This function can export n-dimensional unit roots.
|
|
47
|
+
distance(tuple1,tuple2) This function can export the distance between two points.
|
|
48
|
+
|
|
49
|
+
CONSTANTS:(All the expressions will use the LaTeX grammar.)
|
|
50
|
+
omega This constant satisfies an equation:xe^{x}=1.
|
|
51
|
+
gamma This constant the solution of a limit expression:\lim\limits_{x\to\infty}\big(H(x)-\ln x\big)
|
|
52
|
+
"""
|
|
53
|
+
return help
|
|
54
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mathmore
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: The extension of the math module.
|
|
5
|
+
Author: HZY
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Operating System :: OS Independent
|
|
9
|
+
Requires-Python: >=3.9
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
|
|
12
|
+
This is a simple example package. You can use
|
|
13
|
+
[GitHub-flavored Markdown](https://guides.github.com/features/mastering-markdown/)
|
|
14
|
+
to write your content.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
mathmore
|