Module: Math

Defined in:
lib/webget_ramp/math.rb

Class Method Summary collapse

Class Method Details

.ln(x) ⇒ Object

Return the natural log of x



6
7
8
# File 'lib/webget_ramp/math.rb', line 6

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

.logn(x, b) ⇒ Object

Return the log of x in base b.



13
14
15
# File 'lib/webget_ramp/math.rb', line 13

def Math.logn(x,b)
  Math.ln(x)/Math.ln(b)
end