Una librería simple de Python con operaciones matemáticas básicas.
Project description
Mi-Calculadora
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46624bc4e3c1000198208790f7cda1f2e199ef8e10815eb2f27582790d76776a
|
|
| MD5 |
9cfbbe8c31572058e444196d08d45c86
|
|
| BLAKE2b-256 |
3a73512d7a61ec8faa217f210532eef341203c6a49690e4700c955d245dc8c94
|
File details
Details for the file gdiaz_my_calc_2025-1.2-py3-none-any.whl.
File metadata
- Download URL: gdiaz_my_calc_2025-1.2-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9b50000b9914a30c1a25b70e8bc51b0c98de812a208d99b361d83244bf84df2
|
|
| MD5 |
b4a776c6c539cb5bac005c1745d02625
|
|
| BLAKE2b-256 |
ac6d3c9e682deeb728360be266fa76d3a54603d4ae60cef4d72d99b898100619
|