lib/dydx/helper.rb in dydx-0.1.28 vs lib/dydx/helper.rb in dydx-0.1.29
- old
+ new
@@ -60,10 +60,11 @@
def combinable?(x, operator)
case operator
when :+
(is_num? && x.is_num?) ||
+ (formula?(:*) && (f.is_num? || g.is_num?)) && x.is_num? ||
like_term?(x) ||
inverse?(:+, x)
when :*
self == x ||
(is_num? && x.is_num?) ||
@@ -106,12 +107,9 @@
end
end
def rest(f_or_g)
([:f, :g] - [f_or_g]).first
- end
-
- def commutative?
end
def distributable?(operator)
end