lib/dydx/algebra/set.rb in dydx-0.0.6 vs lib/dydx/algebra/set.rb in dydx-0.0.7
- old
+ new
@@ -41,30 +41,30 @@
log(f) + log(g)
elsif formula.exponentiation?
f, g = formula.f, formula.g
g * log(f)
elsif formula.is_1?
- _(0)
+ e0
elsif formula.is_a?(E)
- _(1)
+ e1
else
Log.new(formula)
end
end
def sin(x)
multiplier = x.is_multiple_of(pi)
if multiplier.is_a?(Num)
- _(0)
+ e0
else
Sin.new(x)
end
end
def cos(x)
multiplier = x.is_multiple_of(pi)
if multiplier.is_a?(Num) && multiplier.n % 2 == 0
- _(1)
+ e1
elsif multiplier.is_a?(Num) && multiplier.n % 2 == 1
_(-1)
else
Cos.new(x)
end