examples/min.rb in rb-gsl-1.16.0.4 vs examples/min.rb in rb-gsl-1.16.0.5
- old
+ new
@@ -8,10 +8,10 @@
gmf = GSL::Min::FMinimizer.alloc(GSL::Min::FMinimizer::BRENT)
gmf.set(fn1, m, a, b)
printf("Using %s method\n", gmf.name)
printf("%5s [%9s, %9s] %9s %10s %9s\n", "iter", "lower", "upper", "min",
"err", "err(est)")
-printf("%5d [%.7f, %.7f] %.7f %+.7f %.7f\n",
+printf("%5d [%.7f, %.7f] %.7f %+.7f %.7f\n",
iter, a, b, m, m - m_expected, b - a)
begin
iter += 1
status = gmf.iterate
status = gmf.test_interval(0.001, 0.0)