Derivative should really throw errors when their input is not differentiable
System dynamics program with additional features for economics
Brought to you by:
hpcoder,
profstevekeen
So derivatives of discontinuous functions will now throw an exception.