Documentation
    Preparing search index...

    Variable logFnOfBaseConst

    logFnOfBase: (base: number) => NumberToNumberFunction

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

    Type declaration

      • (base: number): NumberToNumberFunction
      • Parameters

        • base: number

          base of the logarithm

        Returns NumberToNumberFunction

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

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