/ Published in: Clojure

Implementation of base2 logarithm
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
(defn log2 [n] (/ (Math/log n) (Math/log 2)))
Comments
