time-to-botec

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

repl.txt (729B)


      1 
      2 {{alias}}( x )
      3     Evaluates the natural logarithm of the factorial of `x`.
      4 
      5     For input values other than negative integers, the function returns
      6 
      7       ln( x! ) = ln( Γ(x+1) )
      8 
      9     where `Γ` is the Gamma function. For negative integers, the function returns
     10     `NaN`.
     11 
     12     If provided `NaN`, the function returns `NaN`.
     13 
     14     Parameters
     15     ----------
     16     x: number
     17         Input value.
     18 
     19     Returns
     20     -------
     21     y: number
     22         Natural logarithm of the factorial of `x`.
     23 
     24     Examples
     25     --------
     26     > var y = {{alias}}( 3.0 )
     27     ~1.792
     28     > y = {{alias}}( 2.4 )
     29     ~1.092
     30     > y = {{alias}}( -1.0 )
     31     NaN
     32     > y = {{alias}}( -1.5 )
     33     ~1.266
     34     > y = {{alias}}( NaN )
     35     NaN
     36 
     37     See Also
     38     --------
     39