Skip to content

Commit

Permalink
Updates the return values to reflect what the product actually return…
Browse files Browse the repository at this point in the history
  • Loading branch information
gem-neo4j authored and JPryce-Aklundh committed Oct 2, 2023
1 parent eae7d8c commit b0b3a20
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions modules/ROOT/pages/functions/mathematical-logarithmic.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,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).

|===

Expand Down Expand Up @@ -150,7 +151,8 @@ log(expression)
|===

| `log(null)` returns `null`.
| `log(0)` returns `null`.
| `log(0)` returns `-Infinity`.
| If (`expression` < 0), then (`log(expression)`) returns `NaN`.

|===

Expand Down Expand Up @@ -215,7 +217,8 @@ log10(expression)
|===

| `log10(null)` returns `null`.
| `log10(0)` returns `null`.
| `log10(0)` returns `-Infinity`.
| If (`expression` < 0), then (`log10(expression)`) returns `NaN`.

|===

Expand Down Expand Up @@ -280,7 +283,7 @@ sqrt(expression)
|===

| `sqrt(null)` returns `null`.
| `sqrt(<any negative number>)` returns `NaN`
| If (`expression` < 0), then (`sqrt(expression)`) returns `NaN`.

|===

Expand Down
6 changes: 3 additions & 3 deletions modules/ROOT/pages/functions/mathematical-trigonometric.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,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`.

|===

Expand Down Expand Up @@ -102,7 +102,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`.

|===

Expand Down Expand Up @@ -359,7 +359,7 @@ cot(expression)
|===

| `cot(null)` returns `null`.
| `cot(0)` returns `null`.
| `cot(0)` returns `Infinity`.

|===

Expand Down

0 comments on commit b0b3a20

Please sign in to comment.