scipy 1.8.0 Pypi GitHub Homepage
Other Docs
ParametersReturnsBackRef
euler(n)

The Euler numbers are also known as the secant numbers.

Because euler(n) returns floating point values, it does not give exact values for large n. The first inexact value is E(22).

Parameters

n : int

The highest index of the Euler number to be returned.

Returns

ndarray

The Euler numbers [E(0), E(1), ..., E(n)]. The odd Euler numbers, which are all zero, are included.

Euler numbers E(0), E(1), ..., E(n).

Examples

>>> from scipy.special import euler
... euler(6) array([ 1., 0., -1., 0., 5., 0., -61.])
>>> euler(13).astype(np.int64)
array([      1,       0,      -1,       0,       5,       0,     -61,
             0,    1385,       0,  -50521,       0, 2702765,       0])
>>> euler(22)[-1]  # Exact value of E(22) is -69348874393137901.
-69348874393137976.0
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

scipy.special._basic.euler

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/special/_basic.py#1502
type: <class 'function'>
Commit: