binary-equalab 1.0.0__tar.gz → 2.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {binary_equalab-1.0.0 → binary_equalab-2.0.0}/.gitignore +55 -55
- {binary_equalab-1.0.0 → binary_equalab-2.0.0}/PKG-INFO +21 -6
- {binary_equalab-1.0.0 → binary_equalab-2.0.0}/README.md +141 -126
- {binary_equalab-1.0.0 → binary_equalab-2.0.0}/binary_equalab/__init__.py +23 -23
- {binary_equalab-1.0.0 → binary_equalab-2.0.0}/binary_equalab/cli.py +210 -180
- {binary_equalab-1.0.0 → binary_equalab-2.0.0}/binary_equalab/engine.py +492 -405
- {binary_equalab-1.0.0 → binary_equalab-2.0.0}/binary_equalab/functions.py +18 -18
- binary_equalab-2.0.0/binary_equalab/geometry.py +69 -0
- binary_equalab-2.0.0/binary_equalab/giac_poc.py +74 -0
- binary_equalab-2.0.0/binary_equalab/parser_enhanced.py +66 -0
- binary_equalab-2.0.0/binary_equalab/shell_setup.py +128 -0
- binary_equalab-2.0.0/binary_equalab/sonify.py +91 -0
- binary_equalab-2.0.0/publish_pypi.ps1 +33 -0
- {binary_equalab-1.0.0 → binary_equalab-2.0.0}/pyproject.toml +56 -55
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
# Binary EquaLab - Git Ignore
|
|
2
|
-
|
|
3
|
-
# Python
|
|
4
|
-
__pycache__/
|
|
5
|
-
*.py[cod]
|
|
6
|
-
*$py.class
|
|
7
|
-
*.so
|
|
8
|
-
.Python
|
|
9
|
-
build/
|
|
10
|
-
develop-eggs/
|
|
11
|
-
dist/
|
|
12
|
-
downloads/
|
|
13
|
-
eggs/
|
|
14
|
-
.eggs/
|
|
15
|
-
lib/
|
|
16
|
-
lib64/
|
|
17
|
-
parts/
|
|
18
|
-
sdist/
|
|
19
|
-
var/
|
|
20
|
-
wheels/
|
|
21
|
-
*.egg-info/
|
|
22
|
-
.installed.cfg
|
|
23
|
-
*.egg
|
|
24
|
-
.pytest_cache/
|
|
25
|
-
.coverage
|
|
26
|
-
htmlcov/
|
|
27
|
-
.env
|
|
28
|
-
.venv
|
|
29
|
-
env/
|
|
30
|
-
venv/
|
|
31
|
-
ENV/
|
|
32
|
-
env.bak/
|
|
33
|
-
venv.bak/
|
|
34
|
-
|
|
35
|
-
# Node / Web
|
|
36
|
-
node_modules/
|
|
37
|
-
dist/
|
|
38
|
-
.DS_Store
|
|
39
|
-
.env.local
|
|
40
|
-
.env.development.local
|
|
41
|
-
.env.test.local
|
|
42
|
-
.env.production.local
|
|
43
|
-
npm-debug.log*
|
|
44
|
-
yarn-debug.log*
|
|
45
|
-
yarn-error.log*
|
|
46
|
-
pnpm-debug.log*
|
|
47
|
-
|
|
48
|
-
# IDEs
|
|
49
|
-
.idea/
|
|
50
|
-
.vscode/
|
|
51
|
-
*.swp
|
|
52
|
-
*.swo
|
|
53
|
-
|
|
54
|
-
# Project Specific
|
|
55
|
-
🍒 Guadalupe/
|
|
1
|
+
# Binary EquaLab - Git Ignore
|
|
2
|
+
|
|
3
|
+
# Python
|
|
4
|
+
__pycache__/
|
|
5
|
+
*.py[cod]
|
|
6
|
+
*$py.class
|
|
7
|
+
*.so
|
|
8
|
+
.Python
|
|
9
|
+
build/
|
|
10
|
+
develop-eggs/
|
|
11
|
+
dist/
|
|
12
|
+
downloads/
|
|
13
|
+
eggs/
|
|
14
|
+
.eggs/
|
|
15
|
+
lib/
|
|
16
|
+
lib64/
|
|
17
|
+
parts/
|
|
18
|
+
sdist/
|
|
19
|
+
var/
|
|
20
|
+
wheels/
|
|
21
|
+
*.egg-info/
|
|
22
|
+
.installed.cfg
|
|
23
|
+
*.egg
|
|
24
|
+
.pytest_cache/
|
|
25
|
+
.coverage
|
|
26
|
+
htmlcov/
|
|
27
|
+
.env
|
|
28
|
+
.venv
|
|
29
|
+
env/
|
|
30
|
+
venv/
|
|
31
|
+
ENV/
|
|
32
|
+
env.bak/
|
|
33
|
+
venv.bak/
|
|
34
|
+
|
|
35
|
+
# Node / Web
|
|
36
|
+
node_modules/
|
|
37
|
+
dist/
|
|
38
|
+
.DS_Store
|
|
39
|
+
.env.local
|
|
40
|
+
.env.development.local
|
|
41
|
+
.env.test.local
|
|
42
|
+
.env.production.local
|
|
43
|
+
npm-debug.log*
|
|
44
|
+
yarn-debug.log*
|
|
45
|
+
yarn-error.log*
|
|
46
|
+
pnpm-debug.log*
|
|
47
|
+
|
|
48
|
+
# IDEs
|
|
49
|
+
.idea/
|
|
50
|
+
.vscode/
|
|
51
|
+
*.swp
|
|
52
|
+
*.swo
|
|
53
|
+
|
|
54
|
+
# Project Specific
|
|
55
|
+
🍒 Guadalupe/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: binary-equalab
|
|
3
|
-
Version:
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 2.0.0
|
|
4
|
+
Summary: Advanced Algebra & Calculus CLI Tool
|
|
5
5
|
Project-URL: Homepage, https://github.com/Malexnnn/BinaryEquaLab
|
|
6
6
|
Project-URL: Repository, https://github.com/Malexnnn/BinaryEquaLab
|
|
7
7
|
Project-URL: Documentation, https://github.com/Malexnnn/BinaryEquaLab#readme
|
|
8
|
-
Author:
|
|
8
|
+
Author-email: Malexnnn <carde@example.com>
|
|
9
9
|
License-Expression: MIT
|
|
10
10
|
Keywords: algebra,calculator,calculus,cas,math,spanish,symbolic
|
|
11
11
|
Classifier: Development Status :: 4 - Beta
|
|
@@ -39,7 +39,7 @@ Description-Content-Type: text/markdown
|
|
|
39
39
|
</p>
|
|
40
40
|
|
|
41
41
|
<p align="center">
|
|
42
|
-
<em
|
|
42
|
+
<em>"Las matemáticas también sienten, pero estas no se equivocan."</em>
|
|
43
43
|
</p>
|
|
44
44
|
|
|
45
45
|
---
|
|
@@ -53,12 +53,27 @@ pip install binary-equalab
|
|
|
53
53
|
Or from source:
|
|
54
54
|
```bash
|
|
55
55
|
cd binary-cli
|
|
56
|
-
pip install -e .
|
|
56
|
+
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```
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
---
|
|
60
60
|
|
|
61
|
-
##
|
|
61
|
+
## 🐚 Universal Shell Setup
|
|
62
|
+
Binary EquaLab incluye un configurador mágico para tu terminal. Instala temas, fuentes y plugins automáticamente.
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# Ejecutar configurador
|
|
66
|
+
binary setup-shell
|
|
67
|
+
# O directamente:
|
|
68
|
+
python -m binary_equalab.cli setup-shell
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Soporta:
|
|
72
|
+
- **Windows**: Oh My Posh + Nerd Fonts.
|
|
73
|
+
- **Termux**: Zsh + Oh My Zsh + Autosuggestions.
|
|
74
|
+
- **Linux**: Recomendaciones de Starship.
|
|
75
|
+
|
|
76
|
+
## 🚀 Uso del CLI
|
|
62
77
|
|
|
63
78
|
### REPL Mode
|
|
64
79
|
```bash
|
|
@@ -1,126 +1,141 @@
|
|
|
1
|
-
# Binary EquaLab CLI
|
|
2
|
-
|
|
3
|
-
<p align="center">
|
|
4
|
-
<img src="../docs/banner_cli.png" alt="Binary EquaLab CLI" width="500">
|
|
5
|
-
</p>
|
|
6
|
-
|
|
7
|
-
<p align="center">
|
|
8
|
-
<em
|
|
9
|
-
</p>
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
## 🚀 Installation
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
pip install binary-equalab
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
Or from source:
|
|
20
|
-
```bash
|
|
21
|
-
cd binary-cli
|
|
22
|
-
pip install -e .
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
##
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
|
83
|
-
|
|
|
84
|
-
| `
|
|
85
|
-
| `
|
|
86
|
-
| `
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
|
91
|
-
|
|
|
92
|
-
| `
|
|
93
|
-
| `
|
|
94
|
-
| `
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
1
|
+
# Binary EquaLab CLI
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="../docs/banner_cli.png" alt="Binary EquaLab CLI" width="500">
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<em>"Las matemáticas también sienten, pero estas no se equivocan."</em>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 🚀 Installation
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pip install binary-equalab
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Or from source:
|
|
20
|
+
```bash
|
|
21
|
+
cd binary-cli
|
|
22
|
+
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```
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 🐚 Universal Shell Setup
|
|
28
|
+
Binary EquaLab incluye un configurador mágico para tu terminal. Instala temas, fuentes y plugins automáticamente.
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
# Ejecutar configurador
|
|
32
|
+
binary setup-shell
|
|
33
|
+
# O directamente:
|
|
34
|
+
python -m binary_equalab.cli setup-shell
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Soporta:
|
|
38
|
+
- **Windows**: Oh My Posh + Nerd Fonts.
|
|
39
|
+
- **Termux**: Zsh + Oh My Zsh + Autosuggestions.
|
|
40
|
+
- **Linux**: Recomendaciones de Starship.
|
|
41
|
+
|
|
42
|
+
## 🚀 Uso del CLI
|
|
43
|
+
|
|
44
|
+
### REPL Mode
|
|
45
|
+
```bash
|
|
46
|
+
binary-math
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
Binary EquaLab CLI v1.0.0
|
|
51
|
+
>>> derivar(x^2 + 3x, x)
|
|
52
|
+
→ 2*x + 3
|
|
53
|
+
|
|
54
|
+
>>> integrar(sin(x), x)
|
|
55
|
+
→ -cos(x)
|
|
56
|
+
|
|
57
|
+
>>> factorial(5)
|
|
58
|
+
→ 120
|
|
59
|
+
|
|
60
|
+
>>> van(0.10, -1000, 300, 400, 500)
|
|
61
|
+
→ 78.82
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### One-liner Mode
|
|
65
|
+
```bash
|
|
66
|
+
binary-math "derivar(x^3, x)"
|
|
67
|
+
# Output: 3*x^2
|
|
68
|
+
|
|
69
|
+
binary-math "factorial(10)"
|
|
70
|
+
# Output: 3628800
|
|
71
|
+
|
|
72
|
+
binary-math "0b1010 + 0b0101"
|
|
73
|
+
# Output: 15
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## 🔢 Functions
|
|
79
|
+
|
|
80
|
+
### Calculus
|
|
81
|
+
| Function | Example | Result |
|
|
82
|
+
| ----------------------- | -------------------------- | --------- |
|
|
83
|
+
| `derivar(f, x)` | `derivar(x^2, x)` | `2*x` |
|
|
84
|
+
| `integrar(f, x)` | `integrar(sin(x), x)` | `-cos(x)` |
|
|
85
|
+
| `limite(f, x, a)` | `limite(sin(x)/x, x, 0)` | `1` |
|
|
86
|
+
| `sumatoria(f, n, a, b)` | `sumatoria(n^2, n, 1, 10)` | `385` |
|
|
87
|
+
|
|
88
|
+
### Algebra
|
|
89
|
+
| Function | Example | Result |
|
|
90
|
+
| ---------------- | ---------------------------- | ------------- |
|
|
91
|
+
| `simplificar(f)` | `simplificar((x^2-1)/(x-1))` | `x+1` |
|
|
92
|
+
| `expandir(f)` | `expandir((x+1)^2)` | `x^2+2*x+1` |
|
|
93
|
+
| `factorizar(f)` | `factorizar(x^2-1)` | `(x-1)*(x+1)` |
|
|
94
|
+
| `resolver(f, x)` | `resolver(x^2-4, x)` | `[-2, 2]` |
|
|
95
|
+
|
|
96
|
+
### Statistics
|
|
97
|
+
| Function | Example |
|
|
98
|
+
| ----------------- | ------------------------------ |
|
|
99
|
+
| `media(...)` | `media(1, 2, 3, 4, 5)` → `3` |
|
|
100
|
+
| `mediana(...)` | `mediana(1, 2, 3, 4, 5)` → `3` |
|
|
101
|
+
| `desviacion(...)` | Standard deviation |
|
|
102
|
+
| `varianza(...)` | Variance |
|
|
103
|
+
|
|
104
|
+
### Finance
|
|
105
|
+
| Function | Example |
|
|
106
|
+
| ------------------------------- | -------------------------------------- |
|
|
107
|
+
| `van(r, cf0, cf1, ...)` | `van(0.10, -1000, 300, 400)` |
|
|
108
|
+
| `tir(cf0, cf1, ...)` | `tir(-1000, 300, 400, 500)` |
|
|
109
|
+
| `depreciar(cost, res, years)` | `depreciar(10000, 1000, 5)` |
|
|
110
|
+
| `interes_simple(c, r, t)` | `interes_simple(1000, 0.05, 3)` |
|
|
111
|
+
| `interes_compuesto(c, r, n, t)` | `interes_compuesto(1000, 0.05, 12, 3)` |
|
|
112
|
+
|
|
113
|
+
### Number Systems
|
|
114
|
+
```
|
|
115
|
+
0b1010 → 10 (binary)
|
|
116
|
+
0xFF → 255 (hexadecimal)
|
|
117
|
+
0o17 → 15 (octal)
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## 🥚 Easter Eggs
|
|
123
|
+
|
|
124
|
+
Try these:
|
|
125
|
+
- `1+1`
|
|
126
|
+
- `(-1)*(-1)`
|
|
127
|
+
- `0b101010`
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## 🛠️ Development
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
cd binary-cli
|
|
135
|
+
pip install -e ".[dev]"
|
|
136
|
+
pytest
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
MIT © Malexnnn/ Aldra ORG.
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Binary EquaLab CLI
|
|
3
|
-
Command-line CAS calculator with Spanish math functions.
|
|
4
|
-
"""
|
|
5
|
-
|
|
6
|
-
__version__ = "1.0.0"
|
|
7
|
-
__author__ = "BinaryEquaLab Team"
|
|
8
|
-
|
|
9
|
-
from .engine import MathEngine
|
|
10
|
-
from .functions import (
|
|
11
|
-
derivar, integrar, limite, sumatoria,
|
|
12
|
-
simplificar, expandir, factorizar, resolver,
|
|
13
|
-
van, tir, depreciar, interes_simple, interes_compuesto,
|
|
14
|
-
media, mediana, desviacion, varianza
|
|
15
|
-
)
|
|
16
|
-
|
|
17
|
-
__all__ = [
|
|
18
|
-
"MathEngine",
|
|
19
|
-
"derivar", "integrar", "limite", "sumatoria",
|
|
20
|
-
"simplificar", "expandir", "factorizar", "resolver",
|
|
21
|
-
"van", "tir", "depreciar", "interes_simple", "interes_compuesto",
|
|
22
|
-
"media", "mediana", "desviacion", "varianza",
|
|
23
|
-
]
|
|
1
|
+
"""
|
|
2
|
+
Binary EquaLab CLI
|
|
3
|
+
Command-line CAS calculator with Spanish math functions.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
__version__ = "1.0.0"
|
|
7
|
+
__author__ = "BinaryEquaLab Team"
|
|
8
|
+
|
|
9
|
+
from .engine import MathEngine
|
|
10
|
+
from .functions import (
|
|
11
|
+
derivar, integrar, limite, sumatoria,
|
|
12
|
+
simplificar, expandir, factorizar, resolver,
|
|
13
|
+
van, tir, depreciar, interes_simple, interes_compuesto,
|
|
14
|
+
media, mediana, desviacion, varianza
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
"MathEngine",
|
|
19
|
+
"derivar", "integrar", "limite", "sumatoria",
|
|
20
|
+
"simplificar", "expandir", "factorizar", "resolver",
|
|
21
|
+
"van", "tir", "depreciar", "interes_simple", "interes_compuesto",
|
|
22
|
+
"media", "mediana", "desviacion", "varianza",
|
|
23
|
+
]
|