This is a simple python Function Plotter application that allows users to plot mathematical functions using PySide2 for the GUI and Matplotlib for the plotting. With this application, users can visualize various mathematical functions and their curves by entering the equation and specifying the range for the x-axis.
- Plot mathematical functions with a given equation.
- Specify the range for the x-axis (Xmin and Xmax).
- Dark theme interface for a pleasant user experience.
To run the Plotter application, you'll need the following:
- Python 3.x
- PySide2
- NumPy
- Matplotlib
Install the required dependencies using the following command:
pip install PySide2 numpy matplotlib
-
Run the application by executing the script "app.py".
-
Enter the equation of the function in the "Equation" field. The supported operators are +, -, /, *, and ^ for exponentiation.
-
Specify the range for the x-axis by entering the minimum and maximum values in the "Xmin" and "Xmax" fields, respectively.
-
Click the "Plot" button to visualize the function's curve on the canvas.
-
If you encounter any errors, an error message will be shown in a pop-up window.
-
The equation should only contain the supported operators (+, -, /, *, ^) and the variable "x".
-
Example of valid functions:
- x^3 + (1/5)x^2 + 3x + 1
- -(x-4)^2/(x-6)
- -5
-
Example of invalid functions:
- x^3 +
- -f(x)=(x-4)^2/(x-6)
- -3x (remember to put * with scalars, correct form is 3*x)
-
Division by zero is handled, so you don't need to worry about that.
If you need further assistance on how to use the application or encounter any issues, you can refer to the "Instructions" page. It contains important guidelines and examples for valid and invalid functions.