lib/danica/power.rb in danica-2.0.1 vs lib/danica/power.rb in danica-2.0.2
- old
+ new
@@ -1,20 +1,20 @@
module Danica
class Power < Operator
variables :base, :exponent
def to_f
- base.to_f ** exponent.to_f
+ base.to_f ** exponent.to_f
end
private
def tex_string
- "#{base.to_tex}^{#{exponent.to_tex}}"
+ "#{base.to_tex}^{#{exponent.to_tex}}"
end
def gnu_string
- "#{base.to_gnu}**#{exponent.to_gnu}"
+ "#{base.to_gnu}**#{exponent.to_gnu}"
end
end
end