Module: MathExtensions
- Defined in:
- lib/math_extensions.rb
Instance Method Summary collapse
Instance Method Details
#log2(val) ⇒ Object
3 4 5 |
# File 'lib/math_extensions.rb', line 3 def log2(val) log(val) / log(2) end |
3 4 5 |
# File 'lib/math_extensions.rb', line 3 def log2(val) log(val) / log(2) end |