Simple math calculator with memory. Includes nth root calculation.
Project description
Simple Math Calculator
This is a simple math calculator. It has the basic operations such as addition, subtraction, multiplication, division. It also has capabilites to find the nth root. This calculator has a memory so it stores all the computed values until the memory is reset.
Installation
Install tcCalculator with pip
pip install tcCalculator
Features
- Addition operation
- Subtraction operation
- Multiplication operation
- Division operation
- nth Root operation
Usage/Examples
from tcCalculator import calculate
#initialize instance
calculate = calculate()
#calling methods
>>> calculate.add(2)
2
>>> calculate.add(4)
6
>>> calculate.add(2)
8
>>> calculate.root(3)
2.0
>>> calculate.subtract(0.5)
1.5
>>> calculate.reset()
>>> calculate.memory()
0
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 tcCalculator-0.1.0.tar.gz.
File metadata
- Download URL: tcCalculator-0.1.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9c50c4566311bc9bef1f2327fe517d2ff53f0e4ce6e49f9f2cc920ea57daef0
|
|
| MD5 |
febda46e8b405f135c9d6b80c6243221
|
|
| BLAKE2b-256 |
e5abd6edeb8ac51360bac08d39677d58b1ac7bcccc83aa33af1c5732ab160017
|
File details
Details for the file tccalculator-0.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: tccalculator-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87d65035d003fe39df2004adc475305131bee8b060f9faf1b544c38ab58be3e5
|
|
| MD5 |
4bf4adb72a630fce3d4e3763ac6d69c2
|
|
| BLAKE2b-256 |
18b1d25d11af1dd9cfeba35c908a9f9855fcff4f3664056d77b197f017759583
|