Calculator Aramas: A simple yet effective calculator tool.
Project description
CALCULATOR
A simple Python-based calculator for basic arithmetic operations.
FEATURES
Basic arithmetic operations: addition, subtraction, multiplication, division.
Supports floating-point calculations.
Provides functionality to compute roots.
Maintains a running memory for chained operations.
INSTALLATION
Ensure you have Python installed. You can download it from the official Python website.
Clone this repository or download the source code:
git clone https://github.com/your_username/calculator.git
Navigate to the project directory.
(Optional) Install any required packages or dependencies if mentioned.
USAGE
Creating an instance:
From your Python script or terminal: from calculator import Calculator calc = Calculator()
Performing Operations:
Add number:
result = calc.add(5)
Subtract number:
result = calc.subtract(3)
Multiply by a number:
result = calc.multiply(4)
Divide by a number:
result = calc.divide(6)
Compute square root:
root = calc.root(2)
Error Handling:
The calculator raises specific errors for certain conditions, like division by zero or attempting to compute even roots of negative numbers.
For example: try: result = calc.divide(0) except ValueError: print("Cannot divide by zero!")
LICENSING
The code in this project is licensed under MIT 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
Close
Hashes for calculator_aramas-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eff475342d395af39692cec5d6e240c1dfa11499a3ab5daf65cc12df491474e3 |
|
MD5 | 11c6a6d146da644a1ca829e9ae933987 |
|
BLAKE2b-256 | c139b722f2109295b5227641dc5602b5a18f26ec02fe46ff46b66913d9222442 |