This project is a calculator that evaluates mathematical expressions written in Reverse Polish Notation (RPN). It also supports plotting graphs for functions. The project is implemented in the C programming language.
Reverse Polish Notation (RPN) is a mathematical notation in which operators follow their operands. For example:
- Input: 3 + 4 RPN:3 4 +
- Input: (1 + 2) * 4 + 3 RPN: 1 2 + 4 * 3 + Learn more about RPN on https://ru.wikipedia.org/wiki/Обратная_польская_запись #№ How to Use
- Enter an math expression. Example: sin(x) * cos(x/2)
- The program will evaluate the expression and print the result or plot the graph.
- Basic arithmetic: +, -, *, /, unary minus
- Trigonometric functions: sin(), cos(), tg(), ctg()
- Logarithmic functions: ln()
- Square root: sqrt()
git clone https://github.com/veranemoloko/reverse_polish_notation.git
cd reverse_polish_notation
make
./graph