https://github.com/sharktrexer/calculator
Basic command line calculator for a college assignment 🖩
https://github.com/sharktrexer/calculator
calculator command-line python trigonometric-calculations
Last synced: 1 day ago
JSON representation
Basic command line calculator for a college assignment 🖩
- Host: GitHub
- URL: https://github.com/sharktrexer/calculator
- Owner: sharktrexer
- Created: 2022-10-09T19:46:37.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-05T00:37:04.000Z (almost 2 years ago)
- Last Synced: 2025-01-07T08:48:32.722Z (9 months ago)
- Topics: calculator, command-line, python, trigonometric-calculations
- Language: Python
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# calculator
Basic string-input calculator for a college assignmentTo run you need to download python here: https://www.python.org/downloads
Only the calculator.py needs to be downloaded. Once downloaded, open a command prompt and change to the directory to wherever the calculator.py file is located. Then enter "python calculator.py" to run.
This program also includes a Run_Calc method that can be imported for your own apps to use!
Examples of using the program:


Known Bugs:
- an equation that negates a function being applied to an expression will be incorrectly evaluated i.e., "-sin(8+4)" will be evaluated as "-(sin(8)+4)"
- an equation such as "2-94+" will be accepted as valid and ignore the hanging operator