Arithmetic Calculator
A simple program which performs arithmetic operation.
Arithmetic_calculator performs operation such as:
- Addition/Substraction
- Divistion/Multiplication
- Take(n) root of a number
Installation
It can be installed with::
pip install arithmetic_calc
Usage
To use arithmetic_calculator, we first create an object
from arithmetic_calculator import Arithmetic()
calc = Arithmetic()
Addition of two numbers
result = calc.add(2, 3)
result = 5
Addition of a number to the value in memory
result = calc.add(1) #same as result = calc(1, 5)
result = 6 # 5 is value of number from memory
Substraction
result = calc.substract(4, 2)
result = 2
Divisio
result = calc.divide(4, 2)
result = 2.0
Multiplication
result = calc.multiply(2, 3)
result = 6
Root(n) of num
result = calc.root(9,2)
result = 3
Author
Ibsa Abraham
Metadata
Release files for arithmetic_calc 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| arithmetic_calc-0.1.tar.gz | 5.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| arithmetic_calc-0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 8.9 kB
Release files / arithmetic_calc-0.1.tar.gz
| Download URL | arithmetic_calc-0.1.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0e561ab12a3bc9afb0d74540065fa43e190ac0212781a7cb95c428ed8145fb35
|
|
BLAKE2b-256 checksum How to use checksums |
70bb2973473d239db70c4dc43015783c76ff618c0836dbc2f47ca8dbd681babd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.22.0
|
Release files / arithmetic_calc-0.1-py2.py3-none-any.whl
| Download URL | arithmetic_calc-0.1-py2.py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
cb482ce909a49c55eb93538013b65402c197dd3d2455ff1bf6f6a3b4fb049736
|
|
BLAKE2b-256 checksum How to use checksums |
c5a2360e641266b5ead8441dfe27faecb37626834eeff1cca65cfc12d8a3feca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.22.0
|