public void drawEquation(DrawableEquation equation, Graphics g){
		Iterable<GraphPoint> points = equation.getPoints(dimensions);
		GraphPoint last = null;
		for(GraphPoint p:points){
			if(Double.isInfinite(p.x) || Double.isInfinite(p.y) || Double.isNaN(p.x) || Double.isNaN(p.y))
				p = null;
			if(last!=null && p!=null)
				drawLine(last, p, g);
			last = p;
		}
	}