For performing simple mathematical calculations
Project description
v 0.1.0
TCVB_calc is a simple Python library for performing simple mathematical calculations with memory function.
Installation
Use the package manager pip to install TCVB_calc.
pip install TCVB_calc
Functionality
List of calculator module functions: - Addition (var.add()) - Subtraction (var.subtract()) - Division (var.divide()) - - Multiplication (var.multiply()) - Taking n-th root (var.n_root()) - - Resetting calculator memory (var.reset())
Created variable is stored in calculator memory, print(.result) will print the current value of the variable.
Usage
import TCVB_calc.calc_main
# Instantiates an object with default value of 0
my_var=TCVB_calc.calc_main.Calculator()
# Adds 1 to the Calculator object
my_var.add(1)
# Resets calculator object value to 0
my_var.reset()
Testing
# prints 9 (square root of 81):
import TCVB_calc.calc_main
def n_root_test():
test_var=TCVB_calc.calc_main.Calculator(81)
test_var.n_root(2)
print (test_var.result)
Contributing
This module was written for learning purposes only, comments and suggestions are welcome.
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 TCVB_calc-0.1.0.tar.gz.
File metadata
- Download URL: TCVB_calc-0.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bab41724bd54af1147b743256e46f5c4511d352ec06ef4067bad817ef4875a0
|
|
| MD5 |
b847b2eac03052a21598bd71117cbf54
|
|
| BLAKE2b-256 |
9e5b5c56a64e844032701ef9c02de013b2d2b9521f0a9101f688592abc4071b2
|
File details
Details for the file TCVB_calc-0.1.0-py3-none-any.whl.
File metadata
- Download URL: TCVB_calc-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2ae8cfaef1565a96ef5154ca246434a969e8bd653188f3da61b56f464e4ec58
|
|
| MD5 |
808986347a85d6546ace6fc5cf90aae4
|
|
| BLAKE2b-256 |
7908aeafcace0dcfd01075d19c5c9c7db54286b70aad505d76cebadf34188953
|