Piecewise linear secant approximation via algorithmic piecewise differentiation. (2nd November 2018)