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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xeo_simple_calc-0.0.7.tar.gz.
File metadata
- Download URL: xeo_simple_calc-0.0.7.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
336e6bac7e316013d4476b73b78fa63e8a720ad301077d97268f36a63124e721
|
|
| MD5 |
690132355422cb0428250fb8e6b5625b
|
|
| BLAKE2b-256 |
35f23c42889044c288a658942128280a8630a51fd760133cfc78e546b38c6831
|
File details
Details for the file xeo_simple_calc-0.0.7-py3-none-any.whl.
File metadata
- Download URL: xeo_simple_calc-0.0.7-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
830cfdc4f7485ccb0654c66d86180e1d908b260ef17a6592d72474655927f8df
|
|
| MD5 |
4f90496d4eb4790ba7cf326fae2cb2c6
|
|
| BLAKE2b-256 |
2561a7eda5d27549468104b664bca4c145157a41e56d53e9a585b491ea690802
|