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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

Details for the file calculator_aramas-0.1.0.tar.gz.

File metadata

  • Download URL: calculator_aramas-0.1.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for calculator_aramas-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2395b3f367be4fefb6bc4db168b8d5520117441a686547242895d242545eb943
MD5 1f4c5a1ca88fbc4eb378856261702c50
BLAKE2b-256 e540cc8bfb8687aa624da73601fa4750915cce304a53a0c79c8c931379ccddc6

See more details on using hashes here.

File details

Details for the file calculator_aramas-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for calculator_aramas-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 eff475342d395af39692cec5d6e240c1dfa11499a3ab5daf65cc12df491474e3
MD5 11c6a6d146da644a1ca829e9ae933987
BLAKE2b-256 c139b722f2109295b5227641dc5602b5a18f26ec02fe46ff46b66913d9222442

See more details on using hashes here.

Supported by

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