mingmath 0.1.1__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.
mingmath-0.1.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 [ชื่อของคุณ หรือ ชื่อองค์กร]
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,57 @@
1
+ Metadata-Version: 2.4
2
+ Name: mingmath
3
+ Version: 0.1.1
4
+ Summary: A Python package for undergraduate mathematics, including Calculus and Linear Algebra functions.
5
+ Author-email: Thayapan <m.thayapan@gmail.com>
6
+ License: MIT
7
+ License-File: LICENSE
8
+ Keywords: calculus,education,linear algebra,mathematics
9
+ Classifier: Development Status :: 3 - Alpha
10
+ Classifier: Intended Audience :: Education
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.8
14
+ Classifier: Programming Language :: Python :: 3.9
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Requires-Python: >=3.8
19
+ Description-Content-Type: text/markdown
20
+
21
+ # MingMath Package
22
+
23
+ MingMath is a Python package for undergraduate mathematics.
24
+ It provides functions related to Calculus and Linear Algebra.
25
+
26
+ ## Installation
27
+
28
+ ```bash
29
+ pip install mingmath-package
30
+ ```
31
+
32
+ ## Usage
33
+
34
+ ```python
35
+ import mingmath
36
+
37
+ # Calculus
38
+ print(mingmath.derivative_power(3, 2))
39
+ print(mingmath.definite_integral_power(2, 2, 0, 3))
40
+ print(mingmath.limit_polynomial([1, 2, 3], 2))
41
+ print(mingmath.maclaurin_exp(1))
42
+ print(mingmath.critical_points_quadratic(1, -4, 3))
43
+
44
+ # Linear Algebra
45
+ A = [[1, 2], [3, 4]]
46
+ B = [[5, 6], [7, 8]]
47
+
48
+ print(mingmath.matrix_add(A, B))
49
+ print(mingmath.matrix_multiply(A, B))
50
+ print(mingmath.determinant_2x2(A))
51
+ print(mingmath.transpose(A))
52
+
53
+ v1 = [1, 2, 3]
54
+ v2 = [4, 5, 6]
55
+
56
+ print(mingmath.dot_product(v1, v2))
57
+ ```
@@ -0,0 +1,37 @@
1
+ # MingMath Package
2
+
3
+ MingMath is a Python package for undergraduate mathematics.
4
+ It provides functions related to Calculus and Linear Algebra.
5
+
6
+ ## Installation
7
+
8
+ ```bash
9
+ pip install mingmath-package
10
+ ```
11
+
12
+ ## Usage
13
+
14
+ ```python
15
+ import mingmath
16
+
17
+ # Calculus
18
+ print(mingmath.derivative_power(3, 2))
19
+ print(mingmath.definite_integral_power(2, 2, 0, 3))
20
+ print(mingmath.limit_polynomial([1, 2, 3], 2))
21
+ print(mingmath.maclaurin_exp(1))
22
+ print(mingmath.critical_points_quadratic(1, -4, 3))
23
+
24
+ # Linear Algebra
25
+ A = [[1, 2], [3, 4]]
26
+ B = [[5, 6], [7, 8]]
27
+
28
+ print(mingmath.matrix_add(A, B))
29
+ print(mingmath.matrix_multiply(A, B))
30
+ print(mingmath.determinant_2x2(A))
31
+ print(mingmath.transpose(A))
32
+
33
+ v1 = [1, 2, 3]
34
+ v2 = [4, 5, 6]
35
+
36
+ print(mingmath.dot_product(v1, v2))
37
+ ```
@@ -0,0 +1,34 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "mingmath"
7
+ version = "0.1.1"
8
+ description = "A Python package for undergraduate mathematics, including Calculus and Linear Algebra functions."
9
+ readme = "README.md"
10
+ requires-python = ">=3.8"
11
+ license = { text = "MIT" }
12
+
13
+ authors = [
14
+ { name = "Thayapan", email = "m.thayapan@gmail.com" }
15
+ ]
16
+
17
+ keywords = ["mathematics", "calculus", "linear algebra", "education"]
18
+
19
+ classifiers = [
20
+ "Development Status :: 3 - Alpha",
21
+ "Intended Audience :: Education",
22
+ "License :: OSI Approved :: MIT License",
23
+ "Programming Language :: Python :: 3",
24
+ "Programming Language :: Python :: 3.8",
25
+ "Programming Language :: Python :: 3.9",
26
+ "Programming Language :: Python :: 3.10",
27
+ "Programming Language :: Python :: 3.11",
28
+ "Programming Language :: Python :: 3.12",
29
+ ]
30
+
31
+ dependencies = []
32
+
33
+ [tool.hatch.build.targets.wheel]
34
+ packages = ["src/mingmath"]
@@ -0,0 +1,35 @@
1
+ """
2
+ MingMath Package
3
+ รวมฟังก์ชันเกี่ยวกับ Calculus และ Linear Algebra
4
+ """
5
+
6
+ from .calculus import (
7
+ derivative_power,
8
+ definite_integral_power,
9
+ limit_polynomial,
10
+ maclaurin_exp,
11
+ critical_points_quadratic
12
+ )
13
+
14
+ from .linear import (
15
+ matrix_add,
16
+ matrix_multiply,
17
+ determinant_2x2,
18
+ transpose,
19
+ dot_product
20
+ )
21
+
22
+ __version__ = "0.1.1"
23
+
24
+ __all__ = [
25
+ "derivative_power",
26
+ "definite_integral_power",
27
+ "limit_polynomial",
28
+ "maclaurin_exp",
29
+ "critical_points_quadratic",
30
+ "matrix_add",
31
+ "matrix_multiply",
32
+ "determinant_2x2",
33
+ "transpose",
34
+ "dot_product"
35
+ ]
@@ -0,0 +1,35 @@
1
+ """
2
+ MingMath Package
3
+ รวมฟังก์ชันเกี่ยวกับ Calculus และ Linear Algebra
4
+ """
5
+
6
+ from .calculus import (
7
+ derivative_power,
8
+ definite_integral_power,
9
+ limit_polynomial,
10
+ maclaurin_exp,
11
+ critical_points_quadratic
12
+ )
13
+
14
+ from .linear import (
15
+ matrix_add,
16
+ matrix_multiply,
17
+ determinant_2x2,
18
+ transpose,
19
+ dot_product
20
+ )
21
+
22
+ __version__ = "0.1.1"
23
+
24
+ __all__ = [
25
+ "derivative_power",
26
+ "definite_integral_power",
27
+ "limit_polynomial",
28
+ "maclaurin_exp",
29
+ "critical_points_quadratic",
30
+ "matrix_add",
31
+ "matrix_multiply",
32
+ "determinant_2x2",
33
+ "transpose",
34
+ "dot_product"
35
+ ]
@@ -0,0 +1,26 @@
1
+ def matrix_add(A, B):
2
+ rows = len(A)
3
+ cols = len(A[0])
4
+ return [[A[i][j] + B[i][j] for j in range(cols)] for i in range(rows)]
5
+
6
+ def matrix_multiply(A, B):
7
+ rows_A, cols_A = len(A), len(A[0])
8
+ rows_B, cols_B = len(B), len(B[0])
9
+ if cols_A != rows_B:
10
+ raise ValueError("Invalid matrix dimensions")
11
+
12
+ result = [[0] * cols_B for _ in range(rows_A)]
13
+ for i in range(rows_A):
14
+ for j in range(cols_B):
15
+ for k in range(cols_A):
16
+ result[i][j] += A[i][k] * B[k][j]
17
+ return result
18
+
19
+ def determinant_2x2(A):
20
+ return (A[0][0] * A[1][1]) - (A[0][1] * A[1][0])
21
+
22
+ def transpose(A):
23
+ return [[A[j][i] for j in range(len(A))] for i in range(len(A[0]))]
24
+
25
+ def dot_product(v1, v2):
26
+ return sum(x * y for x, y in zip(v1, v2))