julia
Given a function f, its derivative, f′, and an initial value x1, iteratively:
xk+1=xk−f(xk)f′(xk),k=1,2,...