lib/danica/power.rb in danica-2.0.4 vs lib/danica/power.rb in danica-2.0.5
- old
+ new
@@ -4,16 +4,14 @@
def to_f
base.to_f ** exponent.to_f
end
- private
-
- def tex_string
+ def to_tex
"#{base.to_tex}^{#{exponent.to_tex}}"
end
- def gnu_string
+ def to_gnu
"#{base.to_gnu}**#{exponent.to_gnu}"
end
end
end