Metadata-Version: 2.4
Name: binary-equalab
Version: 2.0.0
Summary: Advanced Algebra & Calculus CLI Tool
Project-URL: Homepage, https://github.com/Malexnnn/BinaryEquaLab
Project-URL: Repository, https://github.com/Malexnnn/BinaryEquaLab
Project-URL: Documentation, https://github.com/Malexnnn/BinaryEquaLab#readme
Author-email: Malexnnn <carde@example.com>
License-Expression: MIT
Keywords: algebra,calculator,calculus,cas,math,spanish,symbolic
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Mathematics
Requires-Python: >=3.9
Requires-Dist: numpy>=1.24
Requires-Dist: prompt-toolkit>=3.0
Requires-Dist: rich>=13.0
Requires-Dist: sympy>=1.12
Provides-Extra: dev
Requires-Dist: black>=23.0; extra == 'dev'
Requires-Dist: mypy>=1.0; extra == 'dev'
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
Requires-Dist: pytest>=7.0; extra == 'dev'
Description-Content-Type: text/markdown

# Binary EquaLab CLI

<p align="center">
  <img src="../docs/banner_cli.png" alt="Binary EquaLab CLI" width="500">
</p>

<p align="center">
  <em>"Las matemáticas también sienten, pero estas no se equivocan."</em>
</p>

---

## 🚀 Installation

```bash
pip install binary-equalab
```

Or from source:
```bash
cd binary-cli
pip install -e .\n```\n\n### 📱 Termux (Android)\n\nLa instalación en Termux nativo requiere compilar algunas dependencias (NumPy/SymPy).\n\n```bash\n# 1. Instalar compiladores y librerías del sistema\npkg update\npkg install python clang make pkg-config libjpeg-turbo freetype libpng\n\n# 2. Instalar Binary EquaLab\npip install binary-equalab\n```
```

---

## 🐚 Universal Shell Setup
Binary EquaLab incluye un configurador mágico para tu terminal. Instala temas, fuentes y plugins automáticamente.

```bash
# Ejecutar configurador
binary setup-shell
# O directamente:
python -m binary_equalab.cli setup-shell
```

Soporta:
-   **Windows**: Oh My Posh + Nerd Fonts.
-   **Termux**: Zsh + Oh My Zsh + Autosuggestions.
-   **Linux**: Recomendaciones de Starship.

## 🚀 Uso del CLI

### REPL Mode
```bash
binary-math
```

```
Binary EquaLab CLI v1.0.0
>>> derivar(x^2 + 3x, x)
→ 2*x + 3

>>> integrar(sin(x), x)
→ -cos(x)

>>> factorial(5)
→ 120

>>> van(0.10, -1000, 300, 400, 500)
→ 78.82
```

### One-liner Mode
```bash
binary-math "derivar(x^3, x)"
# Output: 3*x^2

binary-math "factorial(10)"
# Output: 3628800

binary-math "0b1010 + 0b0101"
# Output: 15
```

---

## 🔢 Functions

### Calculus
| Function                | Example                    | Result    |
| ----------------------- | -------------------------- | --------- |
| `derivar(f, x)`         | `derivar(x^2, x)`          | `2*x`     |
| `integrar(f, x)`        | `integrar(sin(x), x)`      | `-cos(x)` |
| `limite(f, x, a)`       | `limite(sin(x)/x, x, 0)`   | `1`       |
| `sumatoria(f, n, a, b)` | `sumatoria(n^2, n, 1, 10)` | `385`     |

### Algebra
| Function         | Example                      | Result        |
| ---------------- | ---------------------------- | ------------- |
| `simplificar(f)` | `simplificar((x^2-1)/(x-1))` | `x+1`         |
| `expandir(f)`    | `expandir((x+1)^2)`          | `x^2+2*x+1`   |
| `factorizar(f)`  | `factorizar(x^2-1)`          | `(x-1)*(x+1)` |
| `resolver(f, x)` | `resolver(x^2-4, x)`         | `[-2, 2]`     |

### Statistics
| Function          | Example                        |
| ----------------- | ------------------------------ |
| `media(...)`      | `media(1, 2, 3, 4, 5)` → `3`   |
| `mediana(...)`    | `mediana(1, 2, 3, 4, 5)` → `3` |
| `desviacion(...)` | Standard deviation             |
| `varianza(...)`   | Variance                       |

### Finance
| Function                        | Example                                |
| ------------------------------- | -------------------------------------- |
| `van(r, cf0, cf1, ...)`         | `van(0.10, -1000, 300, 400)`           |
| `tir(cf0, cf1, ...)`            | `tir(-1000, 300, 400, 500)`            |
| `depreciar(cost, res, years)`   | `depreciar(10000, 1000, 5)`            |
| `interes_simple(c, r, t)`       | `interes_simple(1000, 0.05, 3)`        |
| `interes_compuesto(c, r, n, t)` | `interes_compuesto(1000, 0.05, 12, 3)` |

### Number Systems
```
0b1010    → 10   (binary)
0xFF      → 255  (hexadecimal)
0o17      → 15   (octal)
```

---

## 🥚 Easter Eggs

Try these:
- `1+1`
- `(-1)*(-1)`
- `0b101010`

---

## 🛠️ Development

```bash
cd binary-cli
pip install -e ".[dev]"
pytest
```

---

MIT © Malexnnn/ Aldra ORG.
