A small calculator that can do various calculations. Read the README file
Project description
Simple Calculator
This is a simple calculator that can add, subtract, multiply, divide and take the nth root of a number. It's a part of a school project at https://turingcollege.com.
In the notebook run the first code cell Then in the second code cell you can use:
- calc.add()
- calc.sub()
- calc.multi()
- calc.div()
- calc.root()
- calc.reset()
They all take 1 argument except for calc.reset() which takes 0 arguments and calc.root which takes 2. The first argument in calc.root is the root and the second argument is the value. calc.root will not be saved in the memory.
The Calculator also has it's own memory, so it will start from 0 and will do the calculations from it's memory as you go until you use calc.reset()
Examples: -- calc.add(5) 5
-- calc.sub(2) 3
-- calc.multi(2) 6
-- calc.div(2) 3
-- calc.reset() 0
-- calc.root(2, 25) 5
Project details
Release history Release notifications | RSS feed
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 calc_project_christian-0.0.1.tar.gz.
File metadata
- Download URL: calc_project_christian-0.0.1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b1e583635c233372c1a396529aeb94283ae7b714d2d4fbc53bf279cf80c99a6
|
|
| MD5 |
5f9fba98c7ca97cab723969ebca4bd4d
|
|
| BLAKE2b-256 |
9a38b0b6cb3f087529400c40ea6ad98b6b111c5c890821de8be7858ccffff64d
|
File details
Details for the file calc_project_christian-0.0.1-py3-none-any.whl.
File metadata
- Download URL: calc_project_christian-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4d37dbf00568bb617612ee55613a8c3c4ecea224100db429ea9e146257c16bc
|
|
| MD5 |
f0a11d723968f01917c4421585374d8a
|
|
| BLAKE2b-256 |
45116823ad5555c9c927f28abf56b0a1937826ea3ed4c4f4aa9afc64f00920a7
|