An interactive Python-based Graphing Calculator built using Turtle Graphics and Tkinter.
This calculator allows users to visualize and graph various mathematical equations, including quadratic, trigonometric, logarithmic, and linear functions, all within a simple GUI interface.
-
📈 Multiple Equation Types
- Quadratic:
y = ax² + bx + c - Linear (Slope):
y = mx + b - Trigonometric:
y = a * sin(fx - h) + v,y = a * cos(fx - h) + v,y = a * tan(fx - h) + v - Logarithmic:
y = log(x) * a
- Quadratic:
-
🎨 Dynamic Graphing
- Randomized graph colors for each new plot
- Smooth drawing animations using Turtle Graphics
-
🧰 Interactive Controls
Exitbutton to close the windowRestartbutton to clear and reinitialize the graphAddbutton to plot additional graphs
-
🖥️ Simple GUI
- Built with Tkinter for clean input dialogs and dropdown menus
- Select which equation to graph from a menu and input coefficients interactively
- Launch the program.
- Choose a function type from the dropdown menu (Quadratics, Slope, Sin, Cos, Tan, Log).
- Input the necessary coefficients/parameters (like
a,b,c, etc.). - Watch your graph appear dynamically in a Turtle Graphics window.
Each function has its own graphing behavior:
- Quadratic: Plots parabolas based on
a,b, andc. - Slope: Draws a straight line using slope
mand interceptb. - Sin / Cos / Tan: Graphs wave functions with adjustable amplitude, frequency, and phase shifts.
- Log: Draws the natural logarithm curve scaled by a multiplier.
- Python 3.8+
- Tkinter (included in standard Python)
- Turtle (included in standard Python)
Clone the repository and run the script directly:
git clone https://github.com/yourusername/GraphingCalculator.git
cd GraphingCalculator
python graphing_calculator.py