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

Uploaded Python 3

File details

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

File metadata

  • Download URL: proxycalc-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 63f8cb7a19abb781920efcf1dce87d64802c9a2fc95c411d3d0269c6e9ee2a4c
MD5 02eece87a57ad4771918184175692f01
BLAKE2b-256 7564b1fa155981a7425b3e6d3abc59500cacc8a01bdc885418bbb0b2df43439d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: proxycalc-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 19bcde8eba8e675c6972717a6ed9a25776291ba66d3957c69d881ea6aadd6365
MD5 2656d9d17f6543996ff61492208981c8
BLAKE2b-256 5fccfbe2efbdf526a8ba0490741e65b5a89b95cf354aa62b1a495684381c6dc0

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