Numerical Computation, Python, Mathematics, Differential Calculus, Differentiation.
print("Values at",each_num,":",differentiate(f,each_num,h=1e-6), ",",differentialfx(each_num)) Output: Values at 0.02 : -1.0002000616626816 , -1.000200060020007 Values at 0.99 : -7.088812059172223 , -7.088812050083354 The values only differ after 8 digits or so, hence running the script with