basic_math_calculator-0.1.0
توضیحات
Very simple calculator
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | basic_math_calculator-0.1.0 |
| نام | basic_math_calculator |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | SigisM |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/basic_math_calculator/ |
| مجوز | - |
# Basic calculator
This is a calculator project for basic math functions.<br />
Implemented methods:<br />
addition<br />
subtraction<br />
multiplication<br />
division<br />
nth-root ((n) root of a number)<br />
reset memory<br />
# Installation
pip install basic-math-calculator
from calculator.calculator import Calculator
# Usage
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.
For example:
>>> calc = Calculator()
>>> calc.addition(4, 5)
9
>>> calc.addition(10)
19
>>> calc.multiplication(2)
38
>>> calc.multiplication(2, 5)
10
>>> calc.reset()
0
# License
This project is licensed under the terms of the **MIT** [license](https://choosealicense.com/licenses/mit/)
نحوه نصب
نصب پکیج whl basic_math_calculator-0.1.0:
pip install basic_math_calculator-0.1.0.whl
نصب پکیج tar.gz basic_math_calculator-0.1.0:
pip install basic_math_calculator-0.1.0.tar.gz