A calculator.
Project description
Calculator
Perform basic math operations
Calculator performs:
- addition
- subraction
- multiplication
- division
- n root of a number
Installation
pip install calculator_ab
Usage
Initializing the Calculator:
>>> from calculator_ab import Calculator
>>> calculator = Calculator()
An example of adding the number:
>>> calculator.add(5)
An example of subtraction:
>>> calculator.subtract(4)
An example of multiplication:
>>> calculator.multiply(2)
An example of division:
>>> calculator.divide(3)
An example of n root:
>>> calculator.n_root(2)
Reseting the memory:
>>> calculator.reset()
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Make sure to add or update tests as appropriate.
Use Black for code formatting and Conventional Commits for commit messages.
Changelog
License
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 calculator_ab-0.5.0.tar.gz.
File metadata
- Download URL: calculator_ab-0.5.0.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f5c854b3ffea62fac3416e40f15b7f379ded52f82c8ada24b35747ae8a7031c
|
|
| MD5 |
93dc15f69ba5fde0cd7a97a5ffadfd2f
|
|
| BLAKE2b-256 |
779e9ff37de6f7b3f81944a587a5b713e2a5d8fed055bdb9300d7498965fa8cd
|
File details
Details for the file calculator_ab-0.5.0-py2.py3-none-any.whl.
File metadata
- Download URL: calculator_ab-0.5.0-py2.py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df3df006c97f222819b83d86a661527ef051a972decf9cfacfb1d7987f02c501
|
|
| MD5 |
eec62e0c02c181b8db694a2569ede7f0
|
|
| BLAKE2b-256 |
386303c4926f1778a29cfae7500310853991535ff8ee9f3c37f9047a7e41d432
|