Skip to main content

#Calculator

Create instances of calculator as a class in python.

###Functions included:

  • add - sums calculator memory with provided value.
  • minus - subtracts the entered value from calculator memory.
  • multiply - multiplies calculator memory by the input value.
  • divide - devides the calculator memory by the input value.
  • root - takes n root from the calculator memory value (square root is taken when no input given).
  • reset - Resets calculator instance memory to zero.

Each function adjusts the calculator memory, as well as returns the new value.

###Installation

pip install calculator_rm==0.0.3

###Usage

from calculator_rm import calculator

calc_obj = calculator.Calculator() # creates an object instance

calc_obj.add(1) # adds 1 to the instance
calc_obj.minus(2) # subtracts 2 from the instance
calc_obj.multiply(3) # multiplies the instnace by 3
calc_obj.divide(4) # divides the instnace by 4
calc_obj.root() # returns square root of the instance
calc_obj.root(5) # returns root 5 of the instance
calc.obj.reset() # resets instance back to zero.

Release files for calculator_rm 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for calculator_rm 0.0.3
File Size Uploaded
calculator_rm-0.0.3.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for calculator_rm 0.0.3
File Interpreter ABI Platform
calculator_rm-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 5.7 kB

Release files / calculator_rm-0.0.3.tar.gz

Download URL calculator_rm-0.0.3.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e77ff6ffafef167025de0b584ba59af4ae4252ed1f15453d7a1b705eb9975605
BLAKE2b-256 checksum
How to use checksums
db05195d77bc0c3df5b1317482bb64866c26a5ae94660f73583ef6a7c1ff5554
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.2

Release files / calculator_rm-0.0.3-py3-none-any.whl

Download URL calculator_rm-0.0.3-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6377c3d77a3b258161ef2f7a03ca212be180de18095f47336cec3173e609ce85
BLAKE2b-256 checksum
How to use checksums
8dddda16dd62dfab778078ae4404dd7bc545cb1faa374098303cb97ebdd7cd97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.2

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page