Assuming that parsing the equation would not be a problem, how can I make an algorithm to plot an arbitrary equation, given a specific canvas size? As in, getting the coordinates of all the pixels to highlight?
I’ve tried just repeatedly calculating Y given X, but it comes out looking sloppy.
This is not a homework question.
By plot i mean graph really, like how a graphing calculator plots an equation.
Consider using the (Windows Forms) DataVisualization Charting library contained in .NET Framework 4. API documentation here and technical reference pages here.