Skip to main content

Arithmetic Calculator

Project description

Arithmetic Calculator

A simple program which performs arithmetic operation.

Arithmetic_calculator performs operation such as:

  • Addition/Substraction
  • Divistion/Multiplication
  • Take(n) root of a number

Installation

It can be installed with::

pip install arithmetic_calc

Usage

To use arithmetic_calculator, we first create an object

from arithmetic_calculator import Arithmetic()
calc = Arithmetic()

Addition of two numbers

result = calc.add(2, 3)
result = 5

Addition of a number to the value in memory

result = calc.add(1)        #same as result = calc(1, 5)
result = 6                  # 5 is value of number from memory

Substraction

result = calc.substract(4, 2)
result = 2

Divisio

result = calc.divide(4, 2)
result = 2.0

Multiplication

result = calc.multiply(2, 3)
result = 6

Root(n) of num

result = calc.root(9,2)
result = 3

Author

Ibsa Abraham

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arithmetic_calc-0.1.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

arithmetic_calc-0.1-py2.py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page