% Newton法サンプル clear all; clc; close all; % 諸設定 x = 0.1; % これを色々変えてみると楽しい % お薦め値: -2.2(快適) 1.6(やや快適) 1.7(迷走) 0.1(迷走) tol = 1e-6; % |f(x)|