Arithmetic Calculator
Project description
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
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 arithmetic_calc-0.1.tar.gz.
File metadata
- Download URL: arithmetic_calc-0.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e561ab12a3bc9afb0d74540065fa43e190ac0212781a7cb95c428ed8145fb35
|
|
| MD5 |
ab551685a9a65a1a9744125ae4e76c90
|
|
| BLAKE2b-256 |
70bb2973473d239db70c4dc43015783c76ff618c0836dbc2f47ca8dbd681babd
|
File details
Details for the file arithmetic_calc-0.1-py2.py3-none-any.whl.
File metadata
- Download URL: arithmetic_calc-0.1-py2.py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb482ce909a49c55eb93538013b65402c197dd3d2455ff1bf6f6a3b4fb049736
|
|
| MD5 |
79544451efb74b8b6fa6257f4591b3ea
|
|
| BLAKE2b-256 |
c5a2360e641266b5ead8441dfe27faecb37626834eeff1cca65cfc12d8a3feca
|