Sha256: 2f9638f2250b72564503ed831465131a558b57ce1b4a8a7dece34ad1a5860f11
Contents?: true
Size: 292 Bytes
Versions: 3
Compression:
Stored size: 292 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
danica-2.0.4 | lib/danica/power.rb |
danica-2.0.3 | lib/danica/power.rb |
danica-2.0.2 | lib/danica/power.rb |