lib/dydx/algebra/set/fixnum.rb in dydx-0.0.1 vs lib/dydx/algebra/set/fixnum.rb in dydx-0.0.2

- old
+ new

@@ -2,23 +2,9 @@ module Algebra module Set Fixnum.class_eval do include Helper - %w(+ - * / ^).each do |operator| - define_method(operator) do |g| - if g.is_a?(Symbol) || - g.is_a?(Formula) || - g.is_a?(Base) || - %w(/ ^).include?(operator) - - _(self).send(operator.to_sym, g) - else - (to_f.send(operator.to_sym, g)).to_i - end - end - end - def differentiate(sym=:x) _(0) end alias_method :d, :differentiate end