Constants

Array API specification for constants.

A conforming implementation of the array API standard must provide and support the following constants adhering to the following conventions.

  • Each constant must have a Python floating-point data type (i.e., float ) and be provided as a Python scalar value.

Objects in API

e

IEEE 754 floating-point representation of Euler’s constant.

e = 2.71828182845904523536028747135266249775724709369995...

inf

IEEE 754 floating-point representation of (positive) infinity.

nan

IEEE 754 floating-point representation of Not a Number ( NaN ).

pi

IEEE 754 floating-point representation of the mathematical constant π .

pi = 3.1415926535897932384626433...