>>> from math import sin >>> def f(x): return x**2-sin(x) >>> secante(f,0.5,0.0000001,0.0001) 0.8767262155615625