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
nBernoulli numbers.- Return type:
Notes
bernoulligenerates numbers using the \(B_n^-\) convention, such that \(B_1=-1/2\).