time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (635B)


      1 
      2 {{alias}}( x, b )
      3     Computes the base `b` logarithm of `x`.
      4 
      5     For negative `b` or `x`, the function returns `NaN`.
      6 
      7     Parameters
      8     ----------
      9     x: number
     10         Input value.
     11 
     12     b: number
     13         Base.
     14 
     15     Returns
     16     -------
     17     y: number
     18         Logarithm (base `b`).
     19 
     20     Examples
     21     --------
     22     > var y = {{alias}}( 100.0, 10.0 )
     23     2.0
     24     > y = {{alias}}( 16.0, 2.0 )
     25     4.0
     26     > y = {{alias}}( 5.0, 1.0 )
     27     Infinity
     28     > y = {{alias}}( NaN, 2.0 )
     29     NaN
     30     > y = {{alias}}( 1.0, NaN )
     31     NaN
     32     > y = {{alias}}( -4.0, 2.0 )
     33     NaN
     34     > y = {{alias}}( 4.0, -2.0 )
     35     NaN
     36 
     37     See Also
     38     --------
     39