How do math sites draw a function graph?

628 views
0

I know how to draw a graph myself (just finished a Math oriented highschool) but the graph calculators are doing it perfectly. If I draw a graph myself, I may not draw f(x) EXACTLY where f(x) must be for EVERY value in the domain.

In: Technology

They do it just as you do: calculate f(x) for a number of points, and connect the dots. Only they do it for much more points than you do. The more points you calculate, the more accurate the graph is.

They don’t draw graphs, they plot points to fill on the pixels on the screen. This is why a curve on a graphing calculator is much choppier than on a computer. Both, though, use the provided function and evaluate it for all of the x-valued pixels shown on the screen.