MingMath Package
MingMath is a Python package for undergraduate mathematics.
It provides functions related to Calculus, Linear Algebra, Data Structures, Recursion, OOP, and Scientific Computing.
Features
Calculus
- Power rule derivative
- Definite integral
- Polynomial limit
- Maclaurin series
- Critical points of quadratic functions
Linear Algebra
- Matrix addition
- Matrix multiplication
- Determinant of a 2x2 matrix
- Matrix transpose
- Dot product
Data Structures and String Processing
- String reversal
- Vowel counting
- List operations
- Tuple conversion
- Dictionary operations
- Set union
- Set intersection
- Exception handling
Recursive Functions
- Recursive factorial
- Recursive Fibonacci
- Fibonacci with memoization
Object-Oriented Programming
- Class and Object
- Magic methods
- Single inheritance
- Multiple inheritance
- Multilevel inheritance
- Hierarchical inheritance
- Hybrid inheritance
Scientific Computing
- NumPy
- SciPy
- SymPy
- Matplotlib
Installation
pip install mingmath
Usage
import mingmath
# Calculus
print(mingmath.derivative_power(3, 2))
print(mingmath.definite_integral_power(2, 2, 0, 3))
print(mingmath.limit_polynomial([1, 2, 3], 2))
print(mingmath.maclaurin_exp(1))
print(mingmath.critical_points_quadratic(1, -4, 3))
# Linear Algebra
A = [[1, 2], [3, 4]]
B = [[5, 6], [7, 8]]
print(mingmath.matrix_add(A, B))
print(mingmath.matrix_multiply(A, B))
print(mingmath.determinant_2x2(A))
print(mingmath.transpose(A))
# Data Structures
print(mingmath.reverse_string("MingMath"))
print(mingmath.count_vowels("Mathematics"))
print(mingmath.list_sum([1, 2, 3, 4, 5]))
# Recursive Functions
print(mingmath.factorial_recursive(5))
print(mingmath.fibonacci_recursive(10))
print(mingmath.fibonacci_memo(10))
# NumPy
print(mingmath.numpy_mean([1, 2, 3, 4, 5]))
# SymPy
print(mingmath.sympy_derivative("x**2 + 3*x"))
print(mingmath.sympy_integral("2*x"))
# SciPy
print(mingmath.scipy_mean([1, 2, 3, 4, 5]))
# OOP
number = mingmath.HybridNumber(3)
print(number.summary())
Version
Current version: 0.2.0
License
MIT License
Metadata
Release files for mingmath 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mingmath-0.2.0.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mingmath-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.8 kB
Release files / mingmath-0.2.0.tar.gz
| Download URL | mingmath-0.2.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2346ddba9f43e0689acc51925faf08ffa147ce2806b8afcc4c2efebfaa158bbf
|
|
BLAKE2b-256 checksum How to use checksums |
81c2cbd09c2ad8667faaae580b22bcb3168968ddf65d7ad9eb87e632ca772b59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / mingmath-0.2.0-py3-none-any.whl
| Download URL | mingmath-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
73ac0478edf6f67b67d2773cb447c9d8b402b67e255ed0d80c089cdb54ea4e53
|
|
BLAKE2b-256 checksum How to use checksums |
1b4200a71381d0ce5124ce952a489a5d389dfbb10abac83c0a0e8d357e65b6d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|