https://events.pythonprogramminghelp.com/stop-is-not-directional-derivatives/