2010-08-09から1日間の記事一覧
さて、前回微分の計算をするところまでで終わっていたんだけど今回は実際に Newton-Raphson で実装してみよう。 (* small number *) let dx = 1.0e-10;; (* threshold *) let threshold = 1.0e-15;; (* derivative *) let deriv f x dx = (f (x +. dx) -. f …
さて、前回微分の計算をするところまでで終わっていたんだけど今回は実際に Newton-Raphson で実装してみよう。 (* small number *) let dx = 1.0e-10;; (* threshold *) let threshold = 1.0e-15;; (* derivative *) let deriv f x dx = (f (x +. dx) -. f …