A Python package for solving mathematical problems.
Project description
MathUtils: Comprehensive Mathematical Utility Library
Overview
MathUtils is a powerful Python library providing advanced mathematical functions across algebra, arithmetic, calculus, and numerical methods.
Installation
pip install mathutils
Modules and Functionalities
Algebra Module
Quadratic Equation Solver
from mathutils import solve_quadratic
# Solve x^2 - 5x + 6 = 0
roots = solve_quadratic(1, -5, 6)
# Returns: (3.0, 2.0)
# Solve equation with no real roots
no_roots = solve_quadratic(1, 2, 5)
# Returns: None
Linear System Solver
from mathutils import solve_linear_system
# Solve system of linear equations:
# 2x + y = 5
# x - y = 1
coefficients = [[2, 1], [1, -1]]
constants = [5, 1]
solution = solve_linear_system(coefficients, constants)
# Returns: [2.0, 0.0]
Arithmetic Module
Number Theory Functions
from mathutils import factorial, gcd, lcm
# Calculate factorial
fact_5 = factorial(5) # 120
# Find Greatest Common Divisor
gcd_result = gcd(48, 18) # 6
# Find Least Common Multiple
lcm_result = lcm(4, 6) # 12
Calculus Module
Symbolic Differentiation and Integration
from mathutils import derivative, integral
# Differentiate x^2 + 3x
diff_result = derivative('x**2 + 3*x', 'x')
# Returns: 2*x + 3
# Integrate x^2 + 3x
integral_result = integral('x**2 + 3*x', 'x')
# Returns: x^3/3 + 3*x^2/2
Numerical Methods Module
Fibonacci Sequence Generator
from mathutils import fibonacci
# Generate first 10 Fibonacci numbers
fib_sequence = fibonacci(10)
# Returns: [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]
Root Finding with Newton-Raphson Method
from mathutils import newton_raphson
import math
# Find root of f(x) = x^2 - 4
def f(x): return x**2 - 4
def df(x): return 2*x
root = newton_raphson(f, df, initial_guess=2)
# Returns: 2.0 (approximation of square root of 4)
Advanced Use Cases
- Scientific Computing
- Engineering Calculations
- Educational Mathematical Tools
- Data Science Preprocessing
- Financial Modeling
Requirements
- NumPy
- SymPy
- Python 3.7+
Contributing
Contributions welcome! Please submit pull requests to our GitHub repository.
License
MIT License
Project Links
- GitHub: [Your GitHub Repo]
- Documentation: [Documentation Link]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mathematicianhelper-0.1.0.tar.gz.
File metadata
- Download URL: mathematicianhelper-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fdca9571b6d194f6ca1d3d531a2921e8c36597ddc0c1743f7103cf0cf8225dc
|
|
| MD5 |
da5c55fe91c5eb0928cd6b5ecbabfb09
|
|
| BLAKE2b-256 |
d40a246a4823ee27d7c14496f7351d33d8360106768f76fdd4e6ab9ab7e4909c
|
File details
Details for the file MathematicianHelper-0.1.0-py3-none-any.whl.
File metadata
- Download URL: MathematicianHelper-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67718a1f524cd37a7a9b81cdf4d9e2e83e961add0d40cdfd249cba70e78e82fb
|
|
| MD5 |
d3cf6aa0ad9df0023a0d3778467aea0f
|
|
| BLAKE2b-256 |
06f743fae558fa548ef5fd179f4f41890a3abfe2f40614a71640e0c0682a0dc9
|