Project

Graphing calculator

BuiltPython · Zero AI

A graphing calculator in Python with its own equation parser, which I wrote when I was 14. All of the code was written with zero AI.

You type in an equation like y=(x^2)/4-5, and it draws the graph right in the terminal: a red X where the line hits a square exactly, and an O where it passes close by. It reads the equation itself instead of handing it to Python, so it works out the order of operations on its own, along with exponents, parentheses inside parentheses, absolute values (written with { }), and shorthand like 2x.

The calculator's output for y=(x^2)/4-5: a parabola of red X's and O's on a grid of squares, with the axes drawn in black
Its graph of y=(x^2)/4-5

To try it, download graphing_calculator.py from GitHub and run python3 graphing_calculator.py in a terminal.