module Math
Public Instance Methods
lg(anti_logarithm)
click to toggle source
# File lib/kgl/kmath.rb, line 11 def lg(anti_logarithm) log(2, anti_logarithm) end
log(base, anti_logarithm=base.tap{base=nil})
click to toggle source
# File lib/kgl/kmath.rb, line 4 def log(base, anti_logarithm=base.tap{base=nil}) if base.nil? ln(angi_logarithm) else ln(anti_logarithm).quo(ln(base)) end end
Also aliased as: ln