Display polynomial line within screenBounds and draw the line smoothly