# mathxyz
**mathxyz** is a state-of-the-art math solver library that leverages advanced symbolic, numerical to solve a wide range of mathematical problems with high accuracy and efficiency. Whether you need to multiply massive integers, compute derivatives and integrals, solve differential equations, or perform optimization, mathxyz provides a robust, high-performance solution.
---
## Features
- **High-Precision Integer Multiplication:**
Multiply very large integers exactly using FFT-based convolution.
- **Efficient Exponentiation:**
Compute powers using fast exponentiation with memoization and display results in both exact and scientific notation.
- **High-Precision Division:**
Perform division using the Newton-Raphson method to compute reciprocals with adjustable precision.
- **Advanced Symbolic and Numerical Solving:**
Solve algebraic equations, transcendental equations, and even complex differential equations using the powerful capabilities of [Sympy](https://www.sympy.org/).
- **AI-Inspired Problem Parsing:**
Uses regex-based pattern recognition to intelligently detect and parse derivatives, integrals, differential equations, and optimization problems from plain text input.
---
## Installation
You can install mathxyz via [PyPI](https://pypi.org/):
```bash
pip install mathxyz
Or clone the repository and install manually:
git clone https://github.com/mr-r0ot/mathxyz.git
cd mathxyz
pip install .
Usage
Below are some examples to get you started:
Solve an Algebraic Equation
import mathxyz
result = mathxyz.math_solver("2*x + 3 = 7")
print(result)
# Output: Symbolic solution: {x: 2}
Compute a Derivative
import mathxyz
result = mathxyz.math_solver("derivative(sin(x), x)")
print(result)
# Output: Derivative of sin(x) with respect to x:
# cos(x)
Compute an Integral
import mathxyz
result = mathxyz.math_solver("integral(x**2, x)")
print(result)
# Output: Integral of x**2 with respect to x:
# x**3/3 + C
Solve a Differential Equation
import mathxyz
result = mathxyz.math_solver("dsolve(Derivative(y(x), x) - y(x), y(x))")
print(result)
# Output: Differential equation solution: y(x) = C1*exp(x)
Optimization Example
import mathxyz
result = mathxyz.math_solver("maximize(x**2 - 4*x + 4)")
print(result)
# Output: Maximize of x**2 - 4*x + 4 at x = ... with value ...
High-Precision Multiplication
import mathxyz
result = mathxyz.multiply(12345678901234567890, 987654321)
print(result)
# Output: 121932631137021795223746380111126352690
Documentation
For full documentation, including detailed API references and advanced usage examples, please visit the GitHub repository.
Contributing
Contributions, issues, and feature requests are welcome!
Feel free to check issues page if you want to contribute.
- Fork the repository.
- Create your feature branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add some AmazingFeature'). - Push to the branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
License
This project is licensed under the MIT License.
Author
Muhammad Taha Gorji
GitHub: mr-r0ot
mathxyz aims to be the ultimate solution for solving complex mathematical problems efficiently. Whether you're a researcher, developer, or math enthusiast, we hope this library empowers you to achieve more with less computational overhead.
Metadata
Release files for mathxyz 0.1.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 | Provenance | |
|---|---|---|---|---|
| mathxyz-0.1.0.tar.gz | 6.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mathxyz-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.6 kB
Release files / mathxyz-0.1.0.tar.gz
| Download URL | mathxyz-0.1.0.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7584931cfd28f451898e4901950e3a6876f15f255c7c0bc2784cf8fae9b0dd9c
|
|
BLAKE2b-256 checksum How to use checksums |
63acd7bffbf504b7251c6ee4f757e5b9a99667ddbe09d9fe95bcf6a13135e74b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.1
|
Release files / mathxyz-0.1.0-py3-none-any.whl
| Download URL | mathxyz-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
caa00f736f1f864777b578249aefd465e8d3cbf8e72100003bed2fe68c5c5e33
|
|
BLAKE2b-256 checksum How to use checksums |
6b88a8e834296510d33b3e5345e01c366e774cd2105079a2677df51e145036a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.1
|
Security for mathxyz 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.