Sha256: d97775a41a56597a912de5fccd4575a9d0e952c8737613f93492d18536dd04bc
Contents?: true
Size: 215 Bytes
Versions: 2
Compression:
Stored size: 215 Bytes
Contents
module Math def self.cbrt(x) (x.to_f**(1.0/3.0)) end unless Math.methods.any?{|m| m.to_s == 'cbrt'} def self.log2(x) Math.log(x) / Math.log(2) end unless Math.methods.any?{|m| m.to_s == 'log2'} end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
numb-0.21.0 | lib/numb/ruby1.8.rb |
numb-0.20.0 | lib/numb/ruby1.8.rb |