aantthony / graph.tk

Javascript Graphing Utility using HTML 5 Canvas
http://aantthony.github.com/graph.tk/
391 stars 51 forks source link

Plotting inequalities #28

Open aantthony opened 13 years ago

aantthony commented 13 years ago

Areas should be shown when functions like y>x+1 are plotted.

aantthony commented 13 years ago

I'm not sure how to plot an inequality for something like http://graph.tk/?theta<20_exp(-r^2)+1 because the current algorithm won't work for http://graph.tk/?theta<20_exp(-r^2)+2 and http://graph.tk/?theta<20*exp(-r^2)+3...

aantthony commented 13 years ago

Would it be reasonable to just draw a line to the point on the edge of the screen that corresponds to the theta value of the last plotted point on the end of the line, and then depending on what quadrant that is in, to just fill around the edges like you would for http://graph.tk/?theta%3C1 ?