Sha256: 65ac714bf909f89cffb06e24b34a45dc1e0a4e8c03ea55a24b8decc97a432de3
Contents?: true
Size: 270 Bytes
Versions: 3
Compression:
Stored size: 270 Bytes
Contents
module Danica class SquaredRoot < Operator variables :variable def to_f Math.sqrt(variable.to_f) end private def tex_string "\\sqrt{#{variable.to_tex}}" end def gnu_string "sqrt(#{variable.to_gnu})" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
danica-2.0.4 | lib/danica/squared_root.rb |
danica-2.0.3 | lib/danica/squared_root.rb |
danica-2.0.2 | lib/danica/squared_root.rb |