patcalc 0.1.4

Last updated:

0 purchases

patcalc 0.1.4 Image
patcalc 0.1.4 Images
Add to Cart

Description:

patcalc 0.1.4

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.