Archive for October 12, 2008

Approaching function roots using the Newton method in OCaml

Hello,
Here is some OCaml code I’ve written that let me approach function roots using the Newton method.
You don’t know or don’t remember what it is and how it works ? Check the Wikipedia article about Newton’s method.
So here we just define iteration criterias and then, until we’re satisfied, calculate at each loop cycle. deriv [...]