mydocs

bisectionMethod

二分法による数値計算

f1 = proc {|x| 
  next x * x - 2
}
x = Num4EquLib.bisectionMethod(-3, -1, f1)