time-to-botec

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

repl.txt (737B)


      1 
      2 {{alias}}( n )
      3     Computes the nth Bernoulli number.
      4 
      5     If not provided a nonnegative integer value, the function returns `NaN`.
      6 
      7     If provided `NaN`, the function returns `NaN`.
      8 
      9     Parameters
     10     ----------
     11     n: integer
     12         Input value.
     13 
     14     Returns
     15     -------
     16     y: number
     17         Bernoulli number.
     18 
     19     Examples
     20     --------
     21     > var y = {{alias}}( 0 )
     22     1.0
     23     > y = {{alias}}( 1 )
     24     0.0
     25     > y = {{alias}}( 2 )
     26     ~0.167
     27     > y = {{alias}}( 3 )
     28     0.0
     29     > y = {{alias}}( 4 )
     30     ~-0.033
     31     > y = {{alias}}( 5 )
     32     0.0
     33     > y = {{alias}}( 20 )
     34     ~-529.124
     35     > y = {{alias}}( 260 )
     36     -Infinity
     37     > y = {{alias}}( 262 )
     38     Infinity
     39     > y = {{alias}}( NaN )
     40     NaN
     41 
     42     See Also
     43     --------
     44