examples/function/function.rb in rb-gsl-1.16.0.4 vs examples/function/function.rb in rb-gsl-1.16.0.5
- old
+ new
@@ -1,9 +1,9 @@
#!/usr/bin/env ruby
require("gsl")
include Math
-f = GSL::Function::alloc{ |x, params|
+f = GSL::Function::alloc{ |x, params|
a = params[0]
b = params[1]
c = params[2]
(a*x + b)*x + c
}