From 9169ec0ac02ec837ef30ca3aefd4974d5aadc2a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20Pryce-=C3=85klundh?= <112686610+JPryce-Aklundh@users.noreply.github.com> Date: Mon, 2 Oct 2023 15:59:05 +0200 Subject: [PATCH] Updates the return values to reflect what the product actually returns. (#754) (#757) From [CIP-49](https://docs.google.com/document/d/1PHnAYYAe9U97YtKpZyaMObhhjEferE_Ynw5gYhRiXTs/edit#heading=h.lzdax825k5wi) Co-authored-by: Gem Lamont <106068376+gem-neo4j@users.noreply.github.com> --- .../ROOT/pages/functions/mathematical-logarithmic.adoc | 9 ++++++--- .../ROOT/pages/functions/mathematical-trigonometric.adoc | 6 +++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/modules/ROOT/pages/functions/mathematical-logarithmic.adoc b/modules/ROOT/pages/functions/mathematical-logarithmic.adoc index f40fedcd2..7803f4974 100644 --- a/modules/ROOT/pages/functions/mathematical-logarithmic.adoc +++ b/modules/ROOT/pages/functions/mathematical-logarithmic.adoc @@ -98,6 +98,7 @@ e(expression) |=== | `exp(null)` returns `null`. +| `exp()` returns `Infinity` when the return value is greater than the largest `FLOAT` value (Java Double.MAX_VALUE). |=== @@ -161,7 +162,8 @@ log(expression) |=== | `log(null)` returns `null`. -| `log(0)` returns `null`. +| `log(0)` returns `-Infinity`. +| If (`expression` < 0), then (`log(expression)`) returns `NaN`. |=== @@ -226,7 +228,8 @@ log10(expression) |=== | `log10(null)` returns `null`. -| `log10(0)` returns `null`. +| `log10(0)` returns `-Infinity`. +| If (`expression` < 0), then (`log10(expression)`) returns `NaN`. |=== @@ -291,7 +294,7 @@ sqrt(expression) |=== | `sqrt(null)` returns `null`. -| `sqrt()` returns `NaN` +| If (`expression` < 0), then (`sqrt(expression)`) returns `NaN`. |=== diff --git a/modules/ROOT/pages/functions/mathematical-trigonometric.adoc b/modules/ROOT/pages/functions/mathematical-trigonometric.adoc index 7dda7f0e9..7f45b37d9 100644 --- a/modules/ROOT/pages/functions/mathematical-trigonometric.adoc +++ b/modules/ROOT/pages/functions/mathematical-trigonometric.adoc @@ -59,7 +59,7 @@ acos(expression) |=== | `acos(null)` returns `null`. -| If (`expression` < -1) or (`expression` > 1), then (`acos(expression)`) returns `null`. +| If (`expression` < -1) or (`expression` > 1), then (`acos(expression)`) returns `NaN`. |=== @@ -121,7 +121,7 @@ asin(expression) |=== | `asin(null)` returns `null`. -| If (`expression` < -1) or (`expression` > 1), then (`asin(expression)`) returns `null`. +| If (`expression` < -1) or (`expression` > 1), then (`asin(expression)`) returns `NaN`. |=== @@ -378,7 +378,7 @@ cot(expression) |=== | `cot(null)` returns `null`. -| `cot(0)` returns `null`. +| `cot(0)` returns `Infinity`. |===