Skip to main content

Proxycalc provides a Calculator class for handling basic mathematical

Project description

proxycalc does basic Mathematical operations on real numbers.

Installation

pip install proxycalc

Usage

Define new Calculator:

>>> from proxycalc import Calculator
>>> calculator = Calculator()
>>> calculator.value
0

Find sum of 4 numbers:

>>> from proxycalc import Calculator
>>> calculator = Calculator()
>>> calculator.add(2, 5, 3, 4)
>>> calculator.value
14

Subtract 2 numbers from the value:

>>> calculator.subtract(5, 3)
>>> calculator.value
6

Multiply value by a number:

>>> calculator.multiply_by(3)
>>> calculator.value
18

Divide value by a number:

>>> calculator.divide_by(2)
>>> calculator.value
9

Find nth root of result:

>>> calculator.find_root(2)
>>> calculator.value
3

Reset calculator:

>>> calculator.reset())
>>> calculator.value
0

Development setup

$ python3 -m venv env
$ . env/bin/activate
$ make deps
$ tox

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Make sure to add or update tests as appropriate.

Use Black for code formatting and Conventional Commits for commit messages.

Changelog

License

MIT

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

proxycalc-0.1.4.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

proxycalc-0.1.4-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file proxycalc-0.1.4.tar.gz.

File metadata

  • Download URL: proxycalc-0.1.4.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for proxycalc-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c62162a6763b71fb28c31be24dc0517ac3bfb2e6135855262cd4bbf82001426a
MD5 199e47461a5e6c4fcbb0b612e25fab9f
BLAKE2b-256 1891298258a7529aad0f819014b8f0440a37f9ad1fba4eccbcd3b691f0b1c519

See more details on using hashes here.

File details

Details for the file proxycalc-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: proxycalc-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for proxycalc-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3bc0376049e6cc250aa815ce76c550798b9495280f7f3af0f4e73e7d6da7ee2a
MD5 9d413f8cf4ea3a27a59cff34670ccc82
BLAKE2b-256 7b5e2200c43c68d01f4eb168ec8c66166967fef6d9033e46faedc457e3523f05

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