Metadata-Version: 2.5
Name: math4u
Version: 0.2.0
Summary: Python Package สำหรับการคำนวณและเครื่องมือทางคณิตศาสตร์
Project-URL: Homepage, https://github.com/username/my_package
Project-URL: Documentation, https://github.com/username/my_package#readme
Project-URL: Repository, https://github.com/username/my_package.git
Project-URL: Bug Tracker, https://github.com/username/my_package/issues
Author-email: Bunyasak Rakjing <boonyasuk1213@gmail.com>
License: MIT
License-File: LICENSE
Keywords: calculus,linear-algebra,mathematics,numpy,scipy,sympy
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.8
Requires-Dist: matplotlib
Requires-Dist: networkx
Requires-Dist: numpy
Requires-Dist: scipy
Requires-Dist: sympy
Description-Content-Type: text/markdown

# math4u

Python Package สำหรับการคำนวณ Calculus และ Linear Algebra

## การใช้งาน

```python
import math4u

# =========================
# Calculus
# =========================

# 1. Derivative
print(math4u.derivative("x**3 + 2*x"))
# 3*x**2 + 2

# 2. Second Derivative
print(math4u.second_derivative("x**3 + 2*x"))
# 6*x

# 3. Indefinite Integral
print(math4u.integrate("x**2 + 2*x"))
# x**3/3 + x**2

# 4. Definite Integral
print(math4u.definite_integral("x**2", 0, 2))
# 8/3

# 5. Limit
print(math4u.limit("sin(x)/x", point=0))
# 1

# 6. Taylor Series
print(math4u.taylor_series("exp(x)", point=0, order=5))
# x**4/24 + x**3/6 + x**2/2 + x + 1


# =========================
# Linear Algebra
# =========================

A = [[1, 2], [3, 4]]
B = [[5, 6], [7, 8]]

# 1. Matrix Addition
print(math4u.matrix_add(A, B))
# Matrix([[6, 8], [10, 12]])

# 2. Matrix Multiplication
print(math4u.matrix_multiply(A, B))
# Matrix([[19, 22], [43, 50]])

# 3. Determinant
print(math4u.determinant(A))
# -2

# 4. Inverse Matrix
print(math4u.inverse_matrix(A))
# Matrix([[-2, 1], [3/2, -1/2]])

# 5. Transpose
print(math4u.transpose(A))
# Matrix([[1, 3], [2, 4]])

# 6. Solve Linear System
print(math4u.solve_linear_system([[2, 1], [1, -1]], [5, 1]))
# (2, 1)