examples/odeiv/oscillator.rb in gsl-1.15.3 vs examples/odeiv/oscillator.rb in gsl-1.16.0.6
- old
+ new
@@ -3,10 +3,10 @@
# m: mass
# k: spring constant
# b: resist
# f: external force
-require("gsl")
+require("gsl")
dim = 2
# x[0]: displacement, x[1]: velocity
func = Proc.new { |t, x, dxdt, params|