Skip to main content

A state-of-the-art math solver library using advanced symbolic, numerical.

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

mathxyz-0.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

mathxyz-0.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file mathxyz-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for mathxyz-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7584931cfd28f451898e4901950e3a6876f15f255c7c0bc2784cf8fae9b0dd9c
MD5 7db1b5c422d939d50db5762fe6420e28
BLAKE2b-256 63acd7bffbf504b7251c6ee4f757e5b9a99667ddbe09d9fe95bcf6a13135e74b

See more details on using hashes here.

File details

Details for the file mathxyz-0.1.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for mathxyz-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 caa00f736f1f864777b578249aefd465e8d3cbf8e72100003bed2fe68c5c5e33
MD5 899a50fcdb8b8a3b162cb9abbb2d35e3
BLAKE2b-256 6b88a8e834296510d33b3e5345e01c366e774cd2105079a2677df51e145036a7

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