Returns the logarithm of a number with a specified base

import { logOfBase } from '@kitsuyui/mymath'
logOfBase(2, 8) // => 3
  • Parameters

    • base: number

      base of the logarithm

    • x: number

      value to the function

    Returns number

    the logarithm of x with the specified base