Sha256: 90c8d7d98d29508969a20e80046ce2619e2c50e75216fe3d6d2c2a657d3b218c

Contents?: true

Size: 238 Bytes

Versions: 1

Compression:

Stored size: 238 Bytes

Contents

if RUBY_VERSION < "1.9"

  def Math.log2( x )
    Math.log( x ) / Math.log( 2 )
  end
 
  def Math.logn( x, n )
    Math.log( x ) / Math.log( n )
  end

end

def Math.max(i, j)
  i > j ? i : j
end

def Math.min(i, j)
  i < j ? i : j
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stamina-0.4.0 lib/stamina/ext/math.rb