Halley's method — method of numerically finding roots of a function