Newton-Raphson method | Animated and explained | Algorithm for finding roots of a function