You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Math Function Plotter GUI is a desktop application designed to plot mathematical functions. Built using PySide2 for the GUI and Matplotlib for plotting, this application allows users to input mathematical expressions, specify the range for the x-axis, and view the resulting plot.
Features
Function Input: Users can enter mathematical functions with support for various operators and functions.
Range Specification: Define the x-axis range with minimum and maximum values.
Step Size: Set the interval between plotted points.
Plotting: Generate and display the graph based on user input.
Error Handling: Real-time validation of inputs with error messages.
Instructions: Access detailed instructions on how to use the application.
Supported Mathematical Functions
Operators: +, -, /, *, ^ (exponentiation)
Trigonometric Functions: sin(x), cos(x), tan(x), etc.
Square Root: sqrt(x)
Logarithms: log(x), log10(x), log2(x)
Constants: pi, e^x (as exp(x))
Program Interface
Instructions
Error Messages
The application provides feedback on input errors through visual cues. Below are descriptions of the various error states and corresponding images.
1. Plot Function is an Empty String
Description: This error occurs when the plot function input field is left empty.
2. Plot Function is Not a Valid Mathematical Function
Description: This error indicates that the input provided for the plot function is not a valid mathematical expression.
3. X Min is an Empty String
Description: This error is shown when the minimum x value input field is left empty.
4. X Min is Not a Valid Number
Description: This error occurs when the minimum x value input is not a valid number.
5. X Max is an Empty String
Description: This error appears when the maximum x value input field is left empty.
6. X Max is Not a Valid Number
Description: This error is displayed when the maximum x value input is not a valid number.
7. X Max is Not Greater Than X Min
Description: This error indicates that the maximum x value is not greater than the minimum x value.
8. Step is an Empty String
Description: This error is shown when the step size input field is left empty.
9. Step is Not a Valid Number
Description: This error appears when the step size input is not a valid number.
10. Step is Zero
Description: This error occurs when the step size is set to zero.