Skip to content

Commit de039bf

Browse files
Update README
1 parent 5236f8b commit de039bf

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,23 @@ The expression is converted using a shunting-yard algorithm and is then evaluate
66

77
## Operations
88

9-
The program currently supports five operations, which can be found in [operations.py](rpn_calc/operations.py)
9+
The program currently supports the following operations and functions, which can be found in [operations.py](rpn_calc/operations.py)
1010
1. Addition (+)
1111
2. Subtraction (-)
1212
3. Multiplication (*)
1313
4. Division (/)
1414
5. Exponentiation (^)
15+
6. Unary minus (~)
16+
7. Factorials and/or Gamma (!)
17+
8. sine
18+
9. cosine
19+
10. tangent
20+
21+
The calculator is also able to detect instances of implicit multiplication.
1522

1623
## Running the program
1724

18-
To run the program, download the [rpn_calc](rpn_calc/) folder, and run [calculator.py](rpn_calc/calculator.py) in the terminal.
25+
To run the program, download [run.py](run.py), [exp.txt](exp.txt), and the [rpn_calc](rpn_calc/) folder.
26+
Edit [exp.txt](exp.txt) to contain your expressions as instructed.
27+
Run [run.py](test.py) in the terminal.
28+
An output file called "equals.txt" should be created in the same folder as your run.py.

0 commit comments

Comments
 (0)