lib/math_extensions.rb in
semin-ulla-0.9.9
vs lib/math_extensions.rb in
semin-ulla-0.9.9.1
- old
+ new
@@ -1,7 +1,9 @@
module MathExtensions
+
def log2(val) log(val) / log(2) end
+
end Math.extend(MathExtensions)