/Function-Plotter

GUI application to plot polynomial functions.

Primary LanguageC++MIT LicenseMIT

Function-Plotter

GUI application to plot polynomial functions.


What can it do

  1. you can plot any arbitrary user-entered function.

  2. the input expression must be function, e.g., 5*x^3+2*x

  3. the input expression must has no spaces.

  4. you can specify the min and max range for x and function.

  5. the program first validated the input expression and display messages to explain any wrong input.

  6. you can specify the number of points to be plotted which affect the smoothness of the curve.

Snapshots

there is many snapshots of correct and wrong input examples in the examples directory.

here's two of them

arbitrary function:

working example

wrong successive brackets:

wrong example

Building steps

This project uses Make building tool with QMake to automate the generation Make building files.

After cloning the repo

git clone https://github.com/MustafaAmer-1/Function-Plotter.git

It's recommended to build this project with Qtcreator to solve any dependency problems, by opening (.pro) file then build and run the project comfortably.

Manual build

To manually build this project you need qmake 6 to be installed with QT libraries configured.

create clean building directory

mkdir build
cd build
qmake ../Function-Plotter.pro
# compile
make -j8

then run the output executable file.

Testing

the project has been tested by QTest framework, including the testing source code in AutoTestPlotter project.

This project has been analysed with cppcheck static code analysis tool and has reported NO ERROR nor warning.