J: Tacit adverb of Newton's method
问题 I've found in 'addons/math/misc/brent.ijs' implementation of Brent's method as an adverb. I would like to build a Newton's method as an adverb too but it's much harder than building tacit verbs. Here is a explicit version of Newton's iteration: newton_i =: 1 : '] - u % u d.1' With such usage: 2&o. newton_i^:_ (1) NB. (-: 1p1) must be found 1.5708 2 o. 1.5708 NB. after substitution we get almost 0 _3.67321e_6 And of course, for convenience: newton =: 1 : 'u newton_i^:_' What's a tacit