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