2022-11-13 10:39:28 -08:00

7 lines
121 B
Python

>>> def deriver(f, x):
... h = 0.00001
... return (f(x+h) - f(x))/h
...
>>> deriver(square, 3)
6.000009999951316