Skip to main content

A small calculator package

Project description

Table of contents

  • General Info
  • Usage
  • Technologies used
  • Acknowledgement
  • License

General Info

This is a simple python package that can be used to perform the simple mathematical functions:

  • Addition
  • Subtraction
  • Division
  • Multiplication
  • N-th root of number
  • Exponent

Usage

This calculator can be used for basic mathematical operations. It also has a calculator memory.

Sample Code

from calc import Calculator

cal = Calculator(4)
#sets calculator memory to 4

OR

from calc import Calculator

cal = Calculator()

Addition

cal.add(4)

#returns 4

Subtraction

cal.subtract(1)

#returns 3

Multiplication

cal.multiply(2)

#returns 6

Division

cal.divide(2)

#returns 3

Memory

cal.memory_value()

#returns 3
cal.reset_memory()

#returns 0

Technologies used

  • Python version: 3.8

Acknowledgement

This project was inspired by Turing College

License

MIT 2021

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

simple-calculator-u-aaa-0.0.1.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.

simple_calculator_u_aaa-0.0.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file simple-calculator-u-aaa-0.0.1.tar.gz.

File metadata

  • Download URL: simple-calculator-u-aaa-0.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for simple-calculator-u-aaa-0.0.1.tar.gz
Algorithm Hash digest
SHA256 637fd7891360096966914cebddf435637d93ddadff2b0276ec307376304dbd8c
MD5 22660a9e6a7a71c0b22f7ea1c05fcabc
BLAKE2b-256 fbcadba9f3ceb6d1ea6380eefff739ad9b8de9db61ad5ae318dd3f779ebc12be

See more details on using hashes here.

File details

Details for the file simple_calculator_u_aaa-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: simple_calculator_u_aaa-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for simple_calculator_u_aaa-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 96f7e3968345ae0e419124db4591f3a6d635e0e16916e8af7ab9fca18642788d
MD5 184a03b8cf8ae251cd7b768149b97d94
BLAKE2b-256 30212fe260ec710ed401db2e54eda2c396e663eff39d9218ad90b06b3042fde2

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