! Copyright © 2008 Reginald Keith Ford II ! See http://factorcode.org/license.txt for BSD license. ! Newton's Method of approximating roots USING: kernel math math.derivatives ; IN: math.newtons-method : newtons-method ( guess function -- x ) newton-precision [ [ newton-step ] keep ] times drop ;