This nice idea for developing intuition fro the derivative as slope or instantaneous rate of change came from a student's program on the Khan CodeAcademy, via Sue Van Hattum.
[url]https://www.khanacademy.org/computer-programming/derivative-intuition/2118157735[/url]
I may have seen something similar from Marc Renault or Mike May.