mingmath 0.3.0__tar.gz → 0.3.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.
@@ -0,0 +1,161 @@
1
+ Metadata-Version: 2.4
2
+ Name: mingmath
3
+ Version: 0.3.1
4
+ Summary: A Python package for undergraduate mathematics, including Calculus, Linear Algebra, Data Structures, Recursion, OOP, Scientific Computing, File I/O, Data Visualization, Graph Theory, and Advanced Mathematics.
5
+ Author-email: Thayapan <m.thayapan@gmail.com>
6
+ License: MIT
7
+ License-File: LICENSE
8
+ Keywords: calculus,data structures,gmpy2,linear algebra,mathematics,matplotlib,networkx,numpy,oop,pari,plotly,pyvista,recursion,sagemath,scipy,seaborn,sympy
9
+ Classifier: Development Status :: 3 - Alpha
10
+ Classifier: Intended Audience :: Education
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Programming Language :: Python
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.8
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Education
20
+ Classifier: Topic :: Scientific/Engineering :: Mathematics
21
+ Requires-Python: >=3.8
22
+ Requires-Dist: cypari2
23
+ Requires-Dist: gmpy2
24
+ Requires-Dist: matplotlib
25
+ Requires-Dist: networkx
26
+ Requires-Dist: numpy
27
+ Requires-Dist: plotly
28
+ Requires-Dist: pyvista
29
+ Requires-Dist: scipy
30
+ Requires-Dist: seaborn
31
+ Requires-Dist: sympy
32
+ Description-Content-Type: text/markdown
33
+
34
+ # MingMath Package
35
+
36
+ MingMath is a Python package for undergraduate mathematics.
37
+
38
+ It provides functions related to Calculus, Linear Algebra,
39
+ Data Structures, String Processing, Recursion, OOP,
40
+ Scientific Computing, File I/O, Data Visualization,
41
+ Graph Theory, and Advanced Mathematics.
42
+
43
+ ## Installation
44
+
45
+ ```bash
46
+ pip install mingmath
47
+ ```
48
+
49
+ ## Usage
50
+
51
+ ```python
52
+ import mingmath
53
+
54
+ # Calculus
55
+ print(mingmath.derivative_power(3, 2))
56
+ print(mingmath.definite_integral_power(2, 2, 0, 3))
57
+
58
+
59
+ # Linear Algebra
60
+ A = [[1, 2], [3, 4]]
61
+ B = [[5, 6], [7, 8]]
62
+
63
+ print(mingmath.matrix_add(A, B))
64
+ print(mingmath.matrix_multiply(A, B))
65
+
66
+
67
+ # Data Structures and String Processing
68
+ print(mingmath.reverse_string("MingMath"))
69
+ print(mingmath.list_sum([1, 2, 3, 4, 5]))
70
+ print(mingmath.dictionary_keys({"name": "MingMath","year": 2026}))
71
+ print(mingmath.set_union({1, 2}, {2, 3}))
72
+
73
+
74
+ # Recursive Functions
75
+ print(mingmath.factorial_recursive(5))
76
+ print(mingmath.fibonacci_recursive(6))
77
+ print(mingmath.fibonacci_memo(10))
78
+
79
+
80
+ # Object-Oriented Programming
81
+ number = mingmath.Number(10)
82
+ print(number)
83
+ scientific_number = mingmath.ScientificNumber(5)
84
+ print(scientific_number.square())
85
+ print(scientific_number.cube())
86
+
87
+
88
+ # NumPy
89
+ print(mingmath.numpy_mean([1, 2, 3, 4, 5]))
90
+ print(mingmath.numpy_matrix_determinant([[1, 2],[3, 4]]))
91
+
92
+
93
+ # SymPy
94
+ print(mingmath.sympy_derivative("x**3 + 2*x"))
95
+ print(mingmath.sympy_integral("2*x"))
96
+
97
+
98
+ # SciPy
99
+ print(mingmath.scipy_mean([1, 2, 3, 4, 5]))
100
+
101
+
102
+ # File I/O
103
+ mingmath.write_text_file("example.txt","Hello MingMath!")
104
+ print(mingmath.read_text_file("example.txt"))
105
+
106
+
107
+ # Matplotlib
108
+ x = [1, 2, 3, 4, 5]
109
+ y = [1, 4, 9, 16, 25]
110
+
111
+ mingmath.plot_line(x, y)
112
+
113
+
114
+ # Seaborn
115
+ x = [1, 2, 3, 4, 5]
116
+ y = [2, 4, 3, 5, 6]
117
+
118
+ mingmath.plot_scatter(x, y)
119
+
120
+
121
+ # Plotly
122
+ mingmath.plot_bar(["A", "B", "C"],[10, 20, 15])
123
+
124
+
125
+ # NetworkX
126
+ edges = [("A", "B"),("B", "C"),("A", "C")]
127
+
128
+ print(mingmath.graph_degrees(edges))
129
+ print(mingmath.shortest_path(edges, "A", "C"))
130
+
131
+
132
+ # PyVista
133
+ import numpy as np
134
+
135
+ x = np.linspace(-2, 2, 20)
136
+ y = np.linspace(-2, 2, 20)
137
+
138
+ X, Y = np.meshgrid(x, y)
139
+
140
+ Z = X**2 + Y**2
141
+
142
+ grid = mingmath.create_3d_surface(X, Y, Z)
143
+
144
+ print(grid)
145
+
146
+
147
+ # GMPY2
148
+ print(mingmath.high_precision_sqrt("2"))
149
+
150
+ print(mingmath.high_precision_pi())
151
+
152
+
153
+ # PARI/GP
154
+ print(mingmath.pari_factorial(5))
155
+
156
+ print(mingmath.pari_factorization(60))
157
+
158
+
159
+ # SageMath
160
+ print(mingmath.sage_available())
161
+ ```
@@ -0,0 +1,128 @@
1
+ # MingMath Package
2
+
3
+ MingMath is a Python package for undergraduate mathematics.
4
+
5
+ It provides functions related to Calculus, Linear Algebra,
6
+ Data Structures, String Processing, Recursion, OOP,
7
+ Scientific Computing, File I/O, Data Visualization,
8
+ Graph Theory, and Advanced Mathematics.
9
+
10
+ ## Installation
11
+
12
+ ```bash
13
+ pip install mingmath
14
+ ```
15
+
16
+ ## Usage
17
+
18
+ ```python
19
+ import mingmath
20
+
21
+ # Calculus
22
+ print(mingmath.derivative_power(3, 2))
23
+ print(mingmath.definite_integral_power(2, 2, 0, 3))
24
+
25
+
26
+ # Linear Algebra
27
+ A = [[1, 2], [3, 4]]
28
+ B = [[5, 6], [7, 8]]
29
+
30
+ print(mingmath.matrix_add(A, B))
31
+ print(mingmath.matrix_multiply(A, B))
32
+
33
+
34
+ # Data Structures and String Processing
35
+ print(mingmath.reverse_string("MingMath"))
36
+ print(mingmath.list_sum([1, 2, 3, 4, 5]))
37
+ print(mingmath.dictionary_keys({"name": "MingMath","year": 2026}))
38
+ print(mingmath.set_union({1, 2}, {2, 3}))
39
+
40
+
41
+ # Recursive Functions
42
+ print(mingmath.factorial_recursive(5))
43
+ print(mingmath.fibonacci_recursive(6))
44
+ print(mingmath.fibonacci_memo(10))
45
+
46
+
47
+ # Object-Oriented Programming
48
+ number = mingmath.Number(10)
49
+ print(number)
50
+ scientific_number = mingmath.ScientificNumber(5)
51
+ print(scientific_number.square())
52
+ print(scientific_number.cube())
53
+
54
+
55
+ # NumPy
56
+ print(mingmath.numpy_mean([1, 2, 3, 4, 5]))
57
+ print(mingmath.numpy_matrix_determinant([[1, 2],[3, 4]]))
58
+
59
+
60
+ # SymPy
61
+ print(mingmath.sympy_derivative("x**3 + 2*x"))
62
+ print(mingmath.sympy_integral("2*x"))
63
+
64
+
65
+ # SciPy
66
+ print(mingmath.scipy_mean([1, 2, 3, 4, 5]))
67
+
68
+
69
+ # File I/O
70
+ mingmath.write_text_file("example.txt","Hello MingMath!")
71
+ print(mingmath.read_text_file("example.txt"))
72
+
73
+
74
+ # Matplotlib
75
+ x = [1, 2, 3, 4, 5]
76
+ y = [1, 4, 9, 16, 25]
77
+
78
+ mingmath.plot_line(x, y)
79
+
80
+
81
+ # Seaborn
82
+ x = [1, 2, 3, 4, 5]
83
+ y = [2, 4, 3, 5, 6]
84
+
85
+ mingmath.plot_scatter(x, y)
86
+
87
+
88
+ # Plotly
89
+ mingmath.plot_bar(["A", "B", "C"],[10, 20, 15])
90
+
91
+
92
+ # NetworkX
93
+ edges = [("A", "B"),("B", "C"),("A", "C")]
94
+
95
+ print(mingmath.graph_degrees(edges))
96
+ print(mingmath.shortest_path(edges, "A", "C"))
97
+
98
+
99
+ # PyVista
100
+ import numpy as np
101
+
102
+ x = np.linspace(-2, 2, 20)
103
+ y = np.linspace(-2, 2, 20)
104
+
105
+ X, Y = np.meshgrid(x, y)
106
+
107
+ Z = X**2 + Y**2
108
+
109
+ grid = mingmath.create_3d_surface(X, Y, Z)
110
+
111
+ print(grid)
112
+
113
+
114
+ # GMPY2
115
+ print(mingmath.high_precision_sqrt("2"))
116
+
117
+ print(mingmath.high_precision_pi())
118
+
119
+
120
+ # PARI/GP
121
+ print(mingmath.pari_factorial(5))
122
+
123
+ print(mingmath.pari_factorization(60))
124
+
125
+
126
+ # SageMath
127
+ print(mingmath.sage_available())
128
+ ```
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
5
5
 
6
6
  [project]
7
7
  name = "mingmath"
8
- version = "0.3.0"
8
+ version = "0.3.1"
9
9
 
10
10
  description = "A Python package for undergraduate mathematics, including Calculus, Linear Algebra, Data Structures, Recursion, OOP, Scientific Computing, File I/O, Data Visualization, Graph Theory, and Advanced Mathematics."
11
11
 
@@ -104,4 +104,4 @@ from .sage_functions import (
104
104
  )
105
105
 
106
106
 
107
- __version__ = "0.3.0"
107
+ __version__ = "0.3.1"
mingmath-0.3.0/PKG-INFO DELETED
@@ -1,137 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: mingmath
3
- Version: 0.3.0
4
- Summary: A Python package for undergraduate mathematics, including Calculus, Linear Algebra, Data Structures, Recursion, OOP, Scientific Computing, File I/O, Data Visualization, Graph Theory, and Advanced Mathematics.
5
- Author-email: Thayapan <m.thayapan@gmail.com>
6
- License: MIT
7
- License-File: LICENSE
8
- Keywords: calculus,data structures,gmpy2,linear algebra,mathematics,matplotlib,networkx,numpy,oop,pari,plotly,pyvista,recursion,sagemath,scipy,seaborn,sympy
9
- Classifier: Development Status :: 3 - Alpha
10
- Classifier: Intended Audience :: Education
11
- Classifier: License :: OSI Approved :: MIT License
12
- Classifier: Programming Language :: Python
13
- Classifier: Programming Language :: Python :: 3
14
- Classifier: Programming Language :: Python :: 3.8
15
- Classifier: Programming Language :: Python :: 3.9
16
- Classifier: Programming Language :: Python :: 3.10
17
- Classifier: Programming Language :: Python :: 3.11
18
- Classifier: Programming Language :: Python :: 3.12
19
- Classifier: Topic :: Education
20
- Classifier: Topic :: Scientific/Engineering :: Mathematics
21
- Requires-Python: >=3.8
22
- Requires-Dist: cypari2
23
- Requires-Dist: gmpy2
24
- Requires-Dist: matplotlib
25
- Requires-Dist: networkx
26
- Requires-Dist: numpy
27
- Requires-Dist: plotly
28
- Requires-Dist: pyvista
29
- Requires-Dist: scipy
30
- Requires-Dist: seaborn
31
- Requires-Dist: sympy
32
- Description-Content-Type: text/markdown
33
-
34
- # MingMath Package
35
-
36
- MingMath is a Python package for undergraduate mathematics.
37
-
38
- It provides functions related to Calculus, Linear Algebra,
39
- Data Structures, String Processing, Recursion, OOP,
40
- Scientific Computing, File I/O, Data Visualization,
41
- Graph Theory, and Advanced Mathematics.
42
-
43
- ## Features
44
-
45
- ### Calculus
46
-
47
- - Power rule derivative
48
- - Definite integral
49
- - Polynomial limit
50
- - Maclaurin series
51
- - Critical points of quadratic functions
52
-
53
- ### Linear Algebra
54
-
55
- - Matrix addition
56
- - Matrix multiplication
57
- - Determinant of a 2x2 matrix
58
- - Matrix transpose
59
- - Dot product
60
-
61
- ### Data Structures and String Processing
62
-
63
- - String reversal
64
- - Vowel counting
65
- - List operations
66
- - Tuple conversion
67
- - Dictionary operations
68
- - Set union
69
- - Set intersection
70
- - Exception handling
71
-
72
- ### Recursive Functions
73
-
74
- - Recursive factorial
75
- - Recursive Fibonacci
76
- - Fibonacci with memoization
77
-
78
- ### Object-Oriented Programming
79
-
80
- - Class and Object
81
- - Magic methods
82
- - Single inheritance
83
- - Multiple inheritance
84
- - Multilevel inheritance
85
- - Hierarchical inheritance
86
- - Hybrid inheritance
87
-
88
- ### Scientific Computing
89
-
90
- - NumPy
91
- - SciPy
92
- - SymPy
93
-
94
- ### File I/O
95
-
96
- - Write text files
97
- - Read text files
98
- - Append text to files
99
-
100
- ### Data Visualization
101
-
102
- - Matplotlib
103
- - Seaborn
104
- - Plotly
105
-
106
- ### NetworkX
107
-
108
- - Create graphs
109
- - Calculate node degrees
110
- - Find shortest paths
111
-
112
- ### PyVista
113
-
114
- - Create 3D mathematical surfaces
115
- - Display 3D surfaces
116
-
117
- ### GMPY2
118
-
119
- - High-precision square root
120
- - High-precision value of pi
121
- - High-precision factorial
122
-
123
- ### PARI/GP
124
-
125
- - Factorial
126
- - Integer factorization
127
- - Greatest common divisor (GCD)
128
-
129
- ### SageMath
130
-
131
- - Check SageMath availability
132
- - Evaluate mathematical expressions
133
-
134
- ## Installation
135
-
136
- ```bash
137
- pip install mingmath
mingmath-0.3.0/README.md DELETED
@@ -1,104 +0,0 @@
1
- # MingMath Package
2
-
3
- MingMath is a Python package for undergraduate mathematics.
4
-
5
- It provides functions related to Calculus, Linear Algebra,
6
- Data Structures, String Processing, Recursion, OOP,
7
- Scientific Computing, File I/O, Data Visualization,
8
- Graph Theory, and Advanced Mathematics.
9
-
10
- ## Features
11
-
12
- ### Calculus
13
-
14
- - Power rule derivative
15
- - Definite integral
16
- - Polynomial limit
17
- - Maclaurin series
18
- - Critical points of quadratic functions
19
-
20
- ### Linear Algebra
21
-
22
- - Matrix addition
23
- - Matrix multiplication
24
- - Determinant of a 2x2 matrix
25
- - Matrix transpose
26
- - Dot product
27
-
28
- ### Data Structures and String Processing
29
-
30
- - String reversal
31
- - Vowel counting
32
- - List operations
33
- - Tuple conversion
34
- - Dictionary operations
35
- - Set union
36
- - Set intersection
37
- - Exception handling
38
-
39
- ### Recursive Functions
40
-
41
- - Recursive factorial
42
- - Recursive Fibonacci
43
- - Fibonacci with memoization
44
-
45
- ### Object-Oriented Programming
46
-
47
- - Class and Object
48
- - Magic methods
49
- - Single inheritance
50
- - Multiple inheritance
51
- - Multilevel inheritance
52
- - Hierarchical inheritance
53
- - Hybrid inheritance
54
-
55
- ### Scientific Computing
56
-
57
- - NumPy
58
- - SciPy
59
- - SymPy
60
-
61
- ### File I/O
62
-
63
- - Write text files
64
- - Read text files
65
- - Append text to files
66
-
67
- ### Data Visualization
68
-
69
- - Matplotlib
70
- - Seaborn
71
- - Plotly
72
-
73
- ### NetworkX
74
-
75
- - Create graphs
76
- - Calculate node degrees
77
- - Find shortest paths
78
-
79
- ### PyVista
80
-
81
- - Create 3D mathematical surfaces
82
- - Display 3D surfaces
83
-
84
- ### GMPY2
85
-
86
- - High-precision square root
87
- - High-precision value of pi
88
- - High-precision factorial
89
-
90
- ### PARI/GP
91
-
92
- - Factorial
93
- - Integer factorization
94
- - Greatest common divisor (GCD)
95
-
96
- ### SageMath
97
-
98
- - Check SageMath availability
99
- - Evaluate mathematical expressions
100
-
101
- ## Installation
102
-
103
- ```bash
104
- pip install mingmath
File without changes