time-to-botec

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

repl.txt (527B)


      1 
      2 {{alias}}( x )
      3     Calculates the scaled Lanczos sum for the approximation of the gamma
      4     function.
      5 
      6     Parameters
      7     ----------
      8     x: number
      9         Input value.
     10 
     11     Returns
     12     -------
     13     y: number
     14         Scaled Lanczos sum.
     15 
     16     Examples
     17     --------
     18     > var y = {{alias}}( 4.0 )
     19     ~0.018
     20     > y = {{alias}}( -1.5 )
     21     ~25.337
     22     > y = {{alias}}( -0.5 )
     23     ~-12.911
     24     > y = {{alias}}( 0.5 )
     25     ~1.772
     26     > y = {{alias}}( 0.0 )
     27     Infinity
     28     > y = {{alias}}( NaN )
     29     NaN
     30 
     31     See Also
     32     --------
     33