Module: Math

Defined in:
lib/webget_ruby_ramp/math.rb

Overview

Math extensions

Class Method Summary collapse

Class Method Details

.ln(num) ⇒ Object

Return the natural log of num



10
11
12
# File 'lib/webget_ruby_ramp/math.rb', line 10

def Math.ln(num)
 Math.log(num)
end

.logn(num, base) ⇒ Object

Return the log of num in base base



17
18
19
# File 'lib/webget_ruby_ramp/math.rb', line 17

def Math.logn(num,base)
  Math.ln(num)/Math.ln(base)
end