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

- old
+ new

@@ -45,14 +45,14 @@ def is_0? [0, 0.0].include?(self) || (is_a?(Num) && n.is_0?) end def is_1? - self == 1 || (is_a?(Num) && n == 1) + [1, 1.0].include?(self) || (is_a?(Num) && n.is_1?) end def is_minus1? - self == -1 || (is_a?(Num) && n == -1) + [1, -1.0].include?(self)|| (is_a?(Num) && n.is_minus1?) end def distributive?(ope1, ope2) [super_ope(ope1), inverse_super_ope(ope1)].include?(ope2) end