Skip to main content

Una librería simple de Python con operaciones matemáticas básicas.

Project description

Mi-Calculadora

PyPI version License: Apache-2.0

Librería Python simple con operaciones matemáticas básicas (suma, resta, multiplicación, división, potenciacion).

Instalación

Instala desde PyPI usando pip (asegúrate de usar el pip asociado a Python 3):

python3 -m pip install mi-calculadora


```bash


import mi_calculadora

# Operaciones
suma = mi_calculadora.sumar(10, 5)       # 15
resta = mi_calculadora.restar(10, 5)      # 5
multi = mi_calculadora.multiplicar(10, 5) # 50
div = mi_calculadora.dividir(10, 5)       # 2.0
pot = mi_calculadora.potenciacion(100, 2)       # 10000

print(f"Suma: {suma}, Resta: {resta}, Multi: {multi}, Div: {div}, Pot: {pot}")

# Manejo de errores
try:
    mi_calculadora.dividir(10, 0)
except ValueError as e:
    print(f"Error: {e}") # Error: No se puede dividir por cero.

# Versión
print(f"Versión: {mi_calculadora.__version__}") # 0.1.0 (o la versión actual)

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

gdiaz_my_calc_2025-1.2.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

gdiaz_my_calc_2025-1.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file gdiaz_my_calc_2025-1.2.tar.gz.

File metadata

  • Download URL: gdiaz_my_calc_2025-1.2.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for gdiaz_my_calc_2025-1.2.tar.gz
Algorithm Hash digest
SHA256 46624bc4e3c1000198208790f7cda1f2e199ef8e10815eb2f27582790d76776a
MD5 9cfbbe8c31572058e444196d08d45c86
BLAKE2b-256 3a73512d7a61ec8faa217f210532eef341203c6a49690e4700c955d245dc8c94

See more details on using hashes here.

File details

Details for the file gdiaz_my_calc_2025-1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for gdiaz_my_calc_2025-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f9b50000b9914a30c1a25b70e8bc51b0c98de812a208d99b361d83244bf84df2
MD5 b4a776c6c539cb5bac005c1745d02625
BLAKE2b-256 ac6d3c9e682deeb728360be266fa76d3a54603d4ae60cef4d72d99b898100619

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