Skip to main content

Command-line CAS calculator with Spanish math functions

Project description

Binary EquaLab CLI

Binary EquaLab CLI

⌨️ Calculadora CAS en la terminal


🚀 Installation

pip install binary-equalab

Or from source:

cd binary-cli
pip install -e .

📖 Usage

REPL Mode

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

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

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

MIT © Malexnnn/ Aldra ORG.

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

binary_equalab-1.0.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

binary_equalab-1.0.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: binary_equalab-1.0.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for binary_equalab-1.0.0.tar.gz
Algorithm Hash digest
SHA256 02b53bc023ad680d85f73feffd29e15ad387ae076b62a7b702b3f7ac615c4823
MD5 633c6573bc8900bc11e647b098a5bc52
BLAKE2b-256 eb38b2b8746b20085b808fa6298a58700d0db7d98adf3222c13d0797ee546411

See more details on using hashes here.

File details

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

File metadata

  • Download URL: binary_equalab-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for binary_equalab-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 140601d420bbe0fac7f38d7c28431f4323b862b90686427b040cf2675f142640
MD5 486d270ca5f84c1e51ee3894b066e28d
BLAKE2b-256 a0caf2f1a4790eeeb22674b78a4290809b4530bebc77d993e3916c46791a855f

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