Calculator
Project description
mrasta-DWWP.1
Overview
Introduction
Welcome to the "Calculator_martynara" Python package!
The "Calculator_martynara" package provides a versatile and easy-to-use calculator
class capable of performing various arithmetic operations and maintaining a memory value.
Whether you need to perform addition, subtraction, multiplication, division, or
even calculate roots, this package has you covered.
Description
The "Calculator_martynara" Python package introduces a powerful and user-friendly
calculator class designed to simplify arithmetic calculations and memory management.
With this package, you can effortlessly perform a wide range of operations and
maintain a memory value for convenient recall and reuse.
Features
- Addition (calculator.add(number)) - add the number to the memory value
- Subtraction (calculator.subtract(number))- subtract the number from the memory value
- Multiplication (calculator.multiply(number)) - multiply the memory value by a number
- Division (calculator.divide(number))- divide the memory value by a number
- Root (calculator.root(power))- calculate the root of a number with a specified power
- Reset (calculator.reset())- reset the memory value to 0
Instructions
Instalation
You can easily install this package using pip: pip install Calculator_martynara
Usage
Firstly - import the Calculator class to perform calculations: from Calculator_martynara import Calculator
# Create a calculator instance
calculator = Calculator()
# Example usage:
result = calculator.add(5)
Examples
Examples demonstrating how to use the Calculator class and its methods.
from Calculator_martynara import Calculator
# Create a Calculator instance
calculator = Calculator()
# Examples
# Inserts number '5' as a memory value
calculator.insert(5)
# Add number '2' to the memory value
calculator.add(2)
# Subtract number '2' from the memory value
calculator.subtract(2)
# Multiply the memory value by '3'
calculator.multiply(3)
# Divide the memory value by '4'
calculator.divide(4)
# Calculate the square root of the memory value
calculator.root(2)
# Reset the memory to 0
calculator.reset()
Tips
- For advanced usage and detailed information on available methods,
consult the package's documentation.
- If you encounter any issues or have questions, don't hesitate to reach out to the
package's author or the community for assistance.
Make the most of the "Calculator_martynara" package to enhance your Python projects and simplify your calculations. Enjoy accurate results and efficient memory management with this versatile tool.
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
calculator_martynara-0.0.1.tar.gz
(11.8 kB
view hashes)
Built Distribution
Close
Hashes for calculator_martynara-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6cd81eacb5874552c768fd6d4fcc63f3e046bedc75f435343a8e0c24a16a13f |
|
MD5 | e6f2dbc4b2aac6126a4408b4d8499fec |
|
BLAKE2b-256 | 95235e41f7f28403f3fb738caf170ce441f3d12689902a33863a3784e8719936 |
Close
Hashes for calculator_martynara-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 781d68f1350aa754b74fc661167d8aa7da40124b1ff98fa5bc71d449cae414ba |
|
MD5 | 32c198c55ff695cc79ea999e140483da |
|
BLAKE2b-256 | cd43d7926276d5e2b145d92c41dc85d174bfade84ededa0c0f60f82dac7c0c89 |