Sha256: 414d8616a4862ca7412828b51c711f473c768299c029e9f21647407e835069fd
Contents?: true
Size: 286 Bytes
Versions: 2
Compression:
Stored size: 286 Bytes
Contents
module Danica class Power < Operator variables :base, :exponent def to_f base.to_f ** exponent.to_f end private def tex_string "#{base.to_tex}^{#{exponent.to_tex}}" end def gnu_string "#{base.to_gnu}**#{exponent.to_gnu}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
danica-2.0.1 | lib/danica/power.rb |
danica-2.0.0 | lib/danica/power.rb |