lib/dydx/algebra/inverse.rb in dydx-0.1.314 vs lib/dydx/algebra/inverse.rb in dydx-0.1.412

- old
+ new

@@ -27,15 +27,15 @@ when :+ then x.to_f * -1 when :* then x.to_f ** -1 end end - def differentiate(sym=:x) + def differentiate(sym = :x) case operator when :+ inverse(x.differentiate(sym), :+) when :* - inverse(x.differentiate(sym) * inverse(x ^ 2, :*), :+) + inverse(x.differentiate(sym) * inverse(x ** 2, :*), :+) end end alias_method :d, :differentiate end end