lib/dydx/algebra/set/sin.rb in dydx-0.1.28 vs lib/dydx/algebra/set/sin.rb in dydx-0.1.29
- old
+ new
@@ -10,12 +10,13 @@
def to_s
"sin( #{x.to_s} )"
end
- def d(sym=:x)
+ def differentiate(sym=:x)
cos(x) * x.d(sym)
end
+ alias_method :d, :differentiate
end
end
end
-end
\ No newline at end of file
+end