Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 1.06 KB

README.md

File metadata and controls

22 lines (12 loc) · 1.06 KB

calculator

Basic string-input calculator for a college assignment

To 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:

calculator default usage calculator debug calculator help

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