Skip to main content

A comprehensive AI library featuring deep learning, reinforcement learning, computer vision, and more.

Project description

# 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.

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add some AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

DeeperAI-1.0.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

DeeperAI-1.0.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file DeeperAI-1.0.0.tar.gz.

File metadata

  • Download URL: DeeperAI-1.0.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for DeeperAI-1.0.0.tar.gz
Algorithm Hash digest
SHA256 065be420ce09a1a3c6943d67539bd2a18e784ae441c138587cd12e8d994fef41
MD5 380e8310d76d8644f5cf43c9665d3ec0
BLAKE2b-256 e1976ce1e8c48971b052b27e1bf63e8ca865f7b0739bee2d370a3282fad5db57

See more details on using hashes here.

File details

Details for the file DeeperAI-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: DeeperAI-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for DeeperAI-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a1555a2a5173bdf30bc3c3b580b6a74d77d12908404413dfeff95fdba0710ef
MD5 45a931aa30698526b13c68197246b6e2
BLAKE2b-256 a5cc248c6edf47e2af70d07e0b1bd836163cb6bf4e7db4f08bc6b1da627473c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page