Table of Contents
The program create a graph of function in the terminal based on a mathematical expression entered by the user. The expression parser is based on Dijkstra's algorithm for translating an expression (infix notation) into Polish notation (postfix notation). The graph is displayed, reflected horizontally, in the terminal.
The following conditions are used:
-
Clone the repository:
git clone https://github.com/chugunova24/terminal-draw-graph.git
-
Go to the project folder. Create a build/ folder:
cd terminal-draw-graph mkdir build
-
Go to the build folder. Build the project using cmake:
cd build cmake ../ make
Enter the following command in the terminal:
./build/graph "cos(x)"
As a result, the sin(x) graph will be displayed in the terminal:
Tatiana C. - @chugunova24 - [email protected]
Project Link: https://github.com/chugunova24/terminal-draw-graph.git