examples/roots/demo.rb in gsl-1.15.3 vs examples/roots/demo.rb in gsl-1.16.0.6
- old
+ new
@@ -5,10 +5,10 @@
a = params[0]; b = params[1]; c = params[2]
(a*x + b)*x + c
}
f.set_params(1, 0, -5)
expected = Math::sqrt(5.0)
-printf("%5s [%9s, %9s] %9s %10s %9s\n", "iter",
+printf("%5s [%9s, %9s] %9s %10s %9s\n", "iter",
"lower", "upper", "root", "err", "err(est)")
solver.set(f, 0.0, 5.0)
iter = 0; status = nil
IO.popen("graph -T X -C -g 3 -X Iterations -Y 'Root'\
--toggle-rotate-y-label\