Constants

From Master of Neuroscience Wiki
Revision as of 12:55, 17 October 2025 by Davrot (talk | contribs) (Created page with " == The goal == Numpy provides plenty of constants. Questions to [mailto:davrot@uni-bremen.de David Rotermund] == [https://numpy.org/doc/stable/reference/constants.html The most important ones] == {| class="wikitable" |numpy.inf |IEEE 754 floating point representation of (positive) infinity. |- |numpy.nan |IEEE 754 floating point representation of Not a Number (NaN). |- |numpy.e |Euler’s constant, base of natural logarithms, Napier’s constant.​ e = 2.718281828459...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The goal

Numpy provides plenty of constants.

Questions to David Rotermund

The most important ones

numpy.inf IEEE 754 floating point representation of (positive) infinity.
numpy.nan IEEE 754 floating point representation of Not a Number (NaN).
numpy.e Euler’s constant, base of natural logarithms, Napier’s constant.​ e = 2.71828182845904523536028747135266249775724709369995…
numpy.newaxis A convenient alias for None, useful for indexing arrays
numpy.pi pi = 3.1415926535897932384626433…