Move either green point.

A secant is a finite line segment whose endpoints lie on a curve.

A secant line can have many points of intersection with a curve.

The secant line slope is found as follows:

f(x) = ((((-(x + 1)) * (x - 2)) * (x - 5)) * (x - 10))
A = Point(f)
B = Point(f)
secant = Segment(B, A)
slope: (y(A) - y(B)) / (x(A) - x(B))
xa: x(A)
xb: x(B)
ya: y(A)
yb: y(B)
text4: "slope=\frac{" + (LaTeX[ya]) + "-" + (LaTeX[yb]) + "}{" + (LaTeX[xa]) + "-" + (LaTeX[xb]) + "}=" + (LaTeX[slope]) + ""