Returns a function that computes the logarithm of a number with a specified base

import { logFnOfBase } from '@kitsuyui/mymath'
const log2 = logFnOfBase(2)
log2(8) // => 3
  • Parameters

    • base: number

      base of the logarithm

    Returns NumberToNumberFunction

    a function that computes the logarithm of a number with the specified base