jax.scipy.special.bernoulli#
- jax.scipy.special.bernoulli(n)[source]#
Generate the first N Bernoulli numbers.
JAX implementation of
scipy.special.bernoulli()
.- Parameters:
n (int) – integer, the number of Bernoulli terms to generate.
- Returns:
Array containing the first
n
Bernoulli numbers.- Return type:
Notes
bernoulli
generates numbers using the \(B_n^-\) convention, such that \(B_1=-1/2\).