Computer Science Canada

creating a graphing calculator

Author:  Tubs [ Fri Feb 28, 2003 2:00 pm ]
Post subject:  creating a graphing calculator

yes, this is an assignment, but i am not asking for any help on it (yet lol)

I was just wondering how hard would this be? when i first saw the requirements i thought it would be really easy

it must:

have a graph with equally sized boxes and labels on x and y axes for the coordinates (easy thats just drawing stuff)

convert all equations that the user types in to y = mx + b form

be able to graph circles, lines, parabollas

Author:  Tony [ Fri Feb 28, 2003 2:11 pm ]
Post subject: 

should be quite easy... all you do is run a forloop from -half the screen size to half the screen size to find the Y value from the equation. Then you add half the screen size to the X to move it in place (so the middle of the screen is 0).

Also, instead of drawing single points, you gotta draw a line from 1 point to the next so that the graph will look like a continues line, not a bunch of scattered dots.


: