Investigate the gradient of an interval

Author:
brownee888
This is for student to investigate the gradient of an interval and for them to develop a general gradient formula.
m is the gradient of the interval AB. Use the sliders on the right to change the coordinates of A and B and see what it does to the gradient. 1)What happens to m when the interval is horizontal? 2)What happens to m when the interval is vertical? 3)What happens to the interval when m=0? 4)What happens to the interval when m>0? 5)What happens to the interval when m<0? 6)How is m calculated? 7)Come up with a general rule to find the gradient between any 2 points.