This Python program takes a mathematical function and draws it in a window without using any third-party packages. The program generates a list of x-values for the function, computes the corresponding y-values, and then scales and plots the function in a window (previously using tkinter, now using matplotlib).
To use the program, first, run pip pip install -r requirements.txt
, and then simply run the funcDraw.py
file and (when prompted) define your own function to be plotted inside the f(x)
function. You can also customize the range of x-values to plot by adjusting the x = np.linspace(-10, 10, 1000)
variable.
Here is an example of the output of the program with the f(x) = x**2 function:
This program was created by myself as a personal project.
- Sine, cosine, tangent and other trigonometric functions do not work as of now. Critical issue, will fix ASAP.
- The window looks barebones.