bundles / scipy 1.17.1 / scipy / special / _basic / bernoulli
function
scipy.special._basic:bernoulli
source: /scipy/special/_basic.py :1764
Signature
def bernoulli ( n ) Summary
Bernoulli numbers B0..Bn (inclusive).
Parameters
n: intIndicated the number of terms in the Bernoulli series to generate.
Returns
: ndarrayThe Bernoulli numbers
[B(0), B(1), ..., B(n)].
Examples
import numpy as np from scipy.special import bernoulli, zeta✓
bernoulli(4)
✗n = np.arange(1, 5)
✓-n * zeta(1 - n)
✗Aliases
-
scipy.special.bernoulli