Basic arithmetics calculator
Project description
patcalc
Basic arithmetics calculator with memory
Installation
pip install patcalc
Usage
>>> from patcalc import Calculator
>>> c = Calculator()
>>> c.add(10) # Adds 10.0 to memory
10.0
>>> c.subs(-5) # Adds 10.0 to memory
15.0
>>> c.subs(5) # Adds 10.0 to memory
10.0
>>> c.mult(2) # Adds 10.0 to memory
20.0
>>> c.div(5) # Adds 10.0 to memory
4.0
>>> c.root() # Root from current memory value 4.0
2.0
>>> c.root(25) # Reset memory value to 0.0 and gives the root of the argument
25.0
>>> c.reset() # Reset memory to 0.0
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
patcalc-0.1.4.tar.gz
(8.7 kB
view hashes)
Built Distribution
Close
Hashes for patcalc-0.1.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7d58c6cac379a77b5f614efa4df8d44fe1cf4a281335c7eb2a0fbc6bb98e818 |
|
MD5 | 87956bcbebdc45e4d73c4d03188939d3 |
|
BLAKE2b-256 | 26fd51d28051950df33b0c56a340248450b768d2ba64f245d6fda00edcc02b52 |