straight line with slope m and intercept q
input
m
q
xmin
xmax
decimals