Moved approximate_derivative() to fncas.