A simple math operations package
Project description
Abdullah Math
A simple Python package for basic mathematical operations.
Features
- Addition
- Subtraction
- Multiplication
- Division (with zero division protection)
Installation
pip install abdullah_math
Usage
from abdullah_math import add, subtract, multiply, divide
# Addition
result = add(5, 3)
print(result) # Output: 8
# Subtraction
result = subtract(10, 4)
print(result) # Output: 6
# Multiplication
result = multiply(3, 7)
print(result) # Output: 21
# Division
result = divide(15, 3)
print(result) # Output: 5.0
# Division by zero raises ValueError
try:
result = divide(10, 0)
except ValueError as e:
print(e) # Output: Cannot divide by zero
Development
Running Tests
python -m pytest tests/
Installing in Development Mode
pip install -e .
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
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
abdullah_math-0.1.0.tar.gz
(3.8 kB
view details)
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 abdullah_math-0.1.0.tar.gz.
File metadata
- Download URL: abdullah_math-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98c501f2a479caa22426f0c238ce0091bf3f8858ea301626059c6bb6426534d5
|
|
| MD5 |
51cd61daa55bffed0b4095078423da56
|
|
| BLAKE2b-256 |
bb747599e959361b61bca90e911691c1cb465fdb53e9bfde27fff2ef8d2e1a40
|
File details
Details for the file abdullah_math-0.1.0-py3-none-any.whl.
File metadata
- Download URL: abdullah_math-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0a390b84481f5e51aac763b4c604bf4b86c21f3f4aab9629e3d3fb77eda1654
|
|
| MD5 |
7dd57dfed22c0a2e48f034097d9b6f5c
|
|
| BLAKE2b-256 |
35632d62e4a21c42d87ad62d59f95c58b6602e80b2ebdd650b17b99a043dea97
|