需要注意的是,有些计算器的log函数默认以e为底,而非以2为底,因此需要将其转换为log2,需要用到换底公式:log2(x) = log(x) / log(2)。

  • ProgrammerRan Python
  •