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.3.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.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: proxycalc-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 1a8f84fbfe9a1a73155e61ca4adca5d7c5a51a48e7d1494528ac47efd0b65509
MD5 2e53c2021b38914705b4b88637f5151e
BLAKE2b-256 e59a69cb98438bc6d1f7d61efbd410873c4850173adb4f546716062a21a8b396

See more details on using hashes here.

File details

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

File metadata

  • Download URL: proxycalc-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f37e8643e2fd81f45908cd40127567554477616224a9d7a28da8079cb3d79d8f
MD5 d5a3acd5b4bf9df28c2a30027fe28e79
BLAKE2b-256 f81e5c71ae52d47be30c2e2751d1ede13192dd518921b8c4c80cc3f21973b77c

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