log2 function

double log2(
  1. num x
)

Base 2 log.

Implementation

double log2(num x) => log(x) / ln2;