see http://beta.scratch.mit.edu/projects/10054530/ for details.
Had idea from graphing calculator. Please comment on any errors or other ideas one may wish me to add on to this or to do.