Skip to main content

A calculator package which performs basic operations.

Project description

calculatorGS

The calculatorGS is a state-of-the-art calculator module for Python. It lets you perform calculation tasks not only by adding or subtracting numbers, but also by using advanced techniques such as multiplication, division or even taking an nth root of the number.

This is by far not a complete module. Many more features could be included in the future versions. Some of them are:

  • Add more operations, such as exp, ln, sin, cos, etc.
  • Tests could be more thorough. Current tests do not check every function. * Instruction could probably be a bit clearer. Readme file needs some fine tuning.

An example

> from calculatorGS import Calculator

> calc = Calculator()
> calc.add(8)
> calc.divide(2)
> calc.root(2)
> calc.display()

Current calculator value: 2

Installation

Install calculatorGS module using pip:

python -m pip install calculatorGS

Testing

Testing of the modules requires pytest and hypothesis. Tests can be run after installation with:

pytest test_calculator.py

License

Copyright Holger Krekel and others, 2004. Distributed under the terms of the MIT license, pytest is free and open source software.

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

calculatorgs-0.4.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

calculatorgs-0.4-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file calculatorgs-0.4.tar.gz.

File metadata

  • Download URL: calculatorgs-0.4.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for calculatorgs-0.4.tar.gz
Algorithm Hash digest
SHA256 0e0ccafce98072638b7ee8471f2c2f8b476cc29084b33731c09617b73797f224
MD5 f0e0720f9ca2646d1bb1fe2b14b40cd0
BLAKE2b-256 8e09437aad5df281cb87fc827d88b528939da0df1255f5b155d13bac828de337

See more details on using hashes here.

File details

Details for the file calculatorgs-0.4-py3-none-any.whl.

File metadata

  • Download URL: calculatorgs-0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for calculatorgs-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7e4ea4fb502cabd5b028f75dd9a4b49971c8583ff74e24a53ea26b8e75a8e73d
MD5 325e04df44fea630c802ef02f05f9085
BLAKE2b-256 7d9cc8c847028df6349f937a5220974ce74ab7b0a2d9070675d493ce57f9d0db

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