A comprehensive calculator package with various math operations.
Project description
Place Batdge Here:
Team members
Deniz Qian: https://github.com/dq2024
Somyung Kim: https://github.com/troy-skim
Terrance Chen: https://github.com/tchen0125
Kim Young: https://github.com/Kyoung655
Project Description
This project is a calculator app that is able to execute multiple functions. The availible functions are add, subtract, multiply, divide, mod, log, exp, randomnumsrange, stringParse, abs, factorial, mean, median, and mode.
Project Instructions
Integration of project into your existing code
If you want to integrate our project code into your code, you can do so by...
Documentation of out project's functions
Our project has the following functions: add(x,y): this functions takes two numbers, adds them together, then returns their sum. This function is only to be used within the stringParse() function. Example here:
substract(x,y): this functions takes two numbers, subtracts them from eachother, then returns their difference. This function is only to be used within the stringParse() function. Example here:
multiply(x,y): this functions takes two numbers, multiplies them together, then returns their product. This function is only to be used within the stringParse() function. Example here:
divide(x,y): this functions takes two numbers, divides them by eachother, then returns their quotient. This function is only to be used within the stringParse() function. Example here:
mod(x,y): this functions takes two numbers, calls the modulus operator, then returns the remainder. This function is only to be used within the stringParse() function. Example here:
log(x,y): this functions takes two numbers, adds them together, then returns the natural logarithm. This function is only to be used within the stringParse() function. Example here:
exp(x,y): this functions takes two numbers. x is multiplied by itself y times. The code then returns the product. This function is only to be used within the stringParse() function. Example here:
randomnumsrange(x,y): this functions takes two numbers. random numbers are generated in between 0 and x, y times. The code then returns the list of random number generated. This function is only to be used within the stringParse() function. Example here:
stringParse(input): this function takes two numbers and any of the following functions previously mentioned: add, subtract, multiply, divide, mod, log, exp, and randomnumsrange. The format for stringParse(input) must be stringParse("number1 operation number2"). Examples here:
abs(x): this function takes a single number and converts it into its absolute value. Example here:
factorial(x, val = {}): this function takes in a number and returns its factorial value. Example here:
mean(list): this function takes in a list of numbers, sums them up, then divides them by the number of numbers in the array, returning the average. Example here:
median(list): this function takes in a list of numbers, ordering the data points, and then finding the midddle number or taking the mean of the middle two numbers. Example here:
mode(numbers): this function takes in a list of numbers and returns the number that appears most often. Example here:
cubesurfacearea(x): this function takes in a number, calls our exp function with x, then multiplies the value returned by our exp function by 6 to get the surface area of a cube.
How to contribute to our project
Link to Project on PyPI Website
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 CalculatorPackSEDTTT-1.0.tar.gz.
File metadata
- Download URL: CalculatorPackSEDTTT-1.0.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b364fb6016c61da87ef6852e431bd66a0fca1db73a5d479e9800c913f1cc80d4
|
|
| MD5 |
141f39a664c9ac4b04d6cdf7df3d02b3
|
|
| BLAKE2b-256 |
be41c613bb457b7ed59a7eda907eed9d9f64ee48946267bb066c3d3d30bf4b10
|
File details
Details for the file CalculatorPackSEDTTT-1.0-py3-none-any.whl.
File metadata
- Download URL: CalculatorPackSEDTTT-1.0-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d48a09b9c83ea5fe837362630db810965e0aec1bf114aaae6735a3772fd3fe8f
|
|
| MD5 |
2ed464908ba74f2e09af226733978adf
|
|
| BLAKE2b-256 |
d7347659a4b64f159689bca25bd801eb6e7e2ba9d3f3e2f1867d94068032c380
|