lib/dydx.rb in dydx-0.1.0 vs lib/dydx.rb in dydx-0.1.1

- old
+ new

@@ -16,10 +16,10 @@ string = function.algebra.to_s .gsub('cos', 'Math.cos') .gsub('sin', 'Math.sin') .gsub('log', 'Math.log') .gsub('e', 'Math::E') - .gsub('pi', 'Math::Pi') + .gsub('pi', 'Math::PI') function.vars.each_with_index do |var, i| string.gsub!(var.to_s, vars[i].to_s) end eval(string) else