lib/dydx/algebra/set.rb in dydx-0.0.4 vs lib/dydx/algebra/set.rb in dydx-0.0.5

- old
+ new

@@ -10,9 +10,16 @@ require 'dydx/algebra/set/tan' module Dydx module Algebra module Set + def e0 + eval("$e0 ||= Num.new(0)") + end + + def e1 + eval("$e1 ||= Num.new(1)") + end def _(num) if num >= 0 eval("$p#{num} ||= Num.new(num)") else eval("$n#{-1 * num} ||= Num.new(num)")