Skip to main content

A small basic calculator

Project description

xeo-simple-calc

This is my first python library. It is a simple calculator.

How to use

First, install the library

pip install xeo-simple-calc

Next, import it

from xeosimplecalc import *

Then do

c = Calc()

Commands

c.add(num1, num2)

Adds two numbers.

c.subtract(num1, num2)

Subtracts two numbers.

c.multiply(num1, num2)

Multiplies two numbers.

c.divide(num1, num2)

Divides two numbers. (returns a float)

c.exponentiation(num, degree)

Exponentiates a number to a certain degree. (Sorry the English is bad :-))

c.square_root(num)

Returns the square root of num. (returns a float)

Change Log

0.0.7 (07.07.2020)

  • Moved all functions into a class.

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

xeo_simple_calc-0.0.7.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

xeo_simple_calc-0.0.7-py3-none-any.whl (2.8 kB view hashes)

Uploaded 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