Skip to main content

six function calculator

Project description

six_function_calculator

This is a simple calculator. This calculator starts with an initial value of 0 within memory. It stores the results of previous calculations within memory, subsequent calculations use the current value stored in memory.

This calculator performs 6 functions

  1. Addition of a maximum of two numbers at a time
  2. subtraction of a maximum of two numbers at a time
  3. Mutiplication of a maximum of two numbers at a time
  4. Division involving two numbers
  5. Finding the nth root of a number
  6. Reseting the calculator's working memory to 0

Licence: MIT (see LICENCE)

Installing this package

pip install six_function_calculator

Example

from six_function_calculator import Calculator

-Creating an instance of Calculator:

calculator1 = Calculator()

-Using this instance of Calculator

calculator1.add(0) -> 0

calculator1.add(2) -> 2

calculator1.add(4) -> 6

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

six_function_calculator-0.0.3.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

six_function_calculator-0.0.3-py2.py3-none-any.whl (3.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file six_function_calculator-0.0.3.tar.gz.

File metadata

File hashes

Hashes for six_function_calculator-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8d480c710fc0b052158fb557d1c8b9f991492d4d48b8b29d39679363e823f4c1
MD5 13d0b73d8259481611b2023e4c2f8d48
BLAKE2b-256 a27989c76ca70e2bf2de80c7536a5df280d86c7494ebd8ff2a893549e1cb5159

See more details on using hashes here.

File details

Details for the file six_function_calculator-0.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for six_function_calculator-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 afb7aaca4f4b3ab8970f59da67e367ddaadf8fd6df72635530ab64222c098c46
MD5 db9daa10472ee472274b77726932e62e
BLAKE2b-256 c29f2a557ef0d23abe8966299b01d661259c01f0e9eb14309f21294adf19330c

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