This project can draw a graph of a function in the console in the range from 0 to 4pi on the abscissa and from -1 to 1 on the ordinate.
Open the cloned project folder in the terminal and type cargo build
.
To use the program, open the target\debug\
folder in the terminal and type ./DrawGraph
or just type cargo run
.
After starting, enter the mathematical function and press "Enter".
A mathematical function can contain only:
Integers;
Exponentiation;
Functions: sin, cos, tg, ctg, sqrt, ln, lg;
Unary minus (~).