Very simple calculator
This is a calculator project for basic math functions.
nth-root ((n) root of a number)
pip install basic-math-calculator
from calculator.calculator import Calculator
Result is stored and overwritten in memory until reset() method is ran.
Calculation methods can take either one or two arguments (in addition to self). If only one arguments is given calculations will be performed with memory value (latest result), otherwise calculations will be performed between two arguments and memory value will be overwritten.
>>> calc = Calculator() >>> calc.addition(4, 5) 9 >>> calc.addition(10) 19 >>> calc.multiplication(2) 38 >>> calc.multiplication(2, 5) 10 >>> calc.reset() 0
This project is licensed under the terms of the MIT license
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for basic_math_calculator-0.1.0-py2.py3-none-any.whl