Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

calculator_aramas-0.1.0.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

calculator_aramas-0.1.0-py2.py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page