I want to use Newton's method as a very brief example that
demonstrates several distinctive features of J.

So far I have

   newton=:1 : '-(u % u d. 1)'
   (_2+*:) newton^:_ ] 2
1.41421
   1&o. newton^:_ i.7
0 0 3.14159 3.14159 3.14159 9.42478 6.28319

Does anyone have suggestions for improving the adverb or the examples?

Best wishes,

John


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to