lib/dydx/algebra/set/num.rb in dydx-0.0.6 vs lib/dydx/algebra/set/num.rb in dydx-0.0.7
- old
+ new
@@ -7,20 +7,20 @@
def initialize(n)
@n = n
end
def differentiate(sym=:x)
- _(0)
+ e0
end
alias_method :d, :differentiate
def to_s
@n.to_s
end
def ==(x)
- x.is_a?(Num) && n == x.n
+ to_s == x.to_s
end
end
end
end
-end
\ No newline at end of file
+end