From 6f1e0a9634cb0f7aff8e89bfccb2b69aefddc3eb Mon Sep 17 00:00:00 2001 From: Athan Reines Date: Mon, 26 Apr 2021 03:24:40 -0700 Subject: [PATCH 1/3] Clarify that constants are Python scalars --- spec/API_specification/constants.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spec/API_specification/constants.md b/spec/API_specification/constants.md index 4a9cd040f..81c3057b6 100644 --- a/spec/API_specification/constants.md +++ b/spec/API_specification/constants.md @@ -2,7 +2,9 @@ > Array API specification for constants. -A conforming implementation of the array API standard must provide and support the following 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 numeric data type (i.e., `int`, `float`, or `complex`) and be provided as a Python scalar value. @@ -11,7 +13,7 @@ A conforming implementation of the array API standard must provide and support t (constant-e)= ### e -Euler's constant. +IEEE 754 floating-point representation of Euler's constant. ```text e = 2.71828182845904523536028747135266249775724709369995... @@ -30,7 +32,7 @@ IEEE 754 floating-point representation of Not a Number (`NaN`). (constant-pi)= ### pi -The mathematical constant `π`. +IEEE 754 floating-point representation of the mathematical constant `π`. ```text pi = 3.1415926535897932384626433... From 778c7c7bfec7567fbb9eb7a3e065a7d807d57333 Mon Sep 17 00:00:00 2001 From: Athan Reines Date: Mon, 10 May 2021 17:45:19 -0700 Subject: [PATCH 2/3] Update note --- spec/API_specification/constants.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/API_specification/constants.md b/spec/API_specification/constants.md index 81c3057b6..5cf8c8e93 100644 --- a/spec/API_specification/constants.md +++ b/spec/API_specification/constants.md @@ -4,7 +4,7 @@ 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 numeric data type (i.e., `int`, `float`, or `complex`) and be provided as a Python scalar value. +- Each constant must have a Python floating-data type (i.e., `float`) and be provided as a Python scalar value. From 0f958b46781f4ad64a53d58a7999233da8aceea9 Mon Sep 17 00:00:00 2001 From: Athan Reines Date: Mon, 10 May 2021 17:46:35 -0700 Subject: [PATCH 3/3] Fix note --- spec/API_specification/constants.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/API_specification/constants.md b/spec/API_specification/constants.md index 5cf8c8e93..78cdc8de7 100644 --- a/spec/API_specification/constants.md +++ b/spec/API_specification/constants.md @@ -4,7 +4,7 @@ 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-data type (i.e., `float`) and be provided as a Python scalar value. +- Each constant must have a Python floating-point data type (i.e., `float`) and be provided as a Python scalar value.