module Math
Math
extensions
Public Class Methods
ln(num)
click to toggle source
@return [Float] the natural log of num
@example
Math.ln(2.719) => 1.00
# File lib/sixarm_ruby_ramp/math.rb, line 13 def Math.ln(num) Math.log(num) end
logn(num,base)
click to toggle source
@return [Float] the log of num in base base
@example
Math.logn(10000,10) => 4.00
# File lib/sixarm_ruby_ramp/math.rb, line 24 def Math.logn(num,base) Math.ln(num)/Math.ln(base) end