Skip to content

Commit a3d5d61

Browse files
remove mathematical operators from old operators page and fix links
1 parent 907d982 commit a3d5d61

File tree

5 files changed

+4
-58
lines changed

5 files changed

+4
-58
lines changed

modules/ROOT/pages/appendix/gql-conformance/supported-mandatory.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ For example, `RETURN sum(<expr>)` on an empty table returns `NULL` in GQL, but i
185185

186186
| 20.21
187187
| <numeric value expression>
188-
| xref:syntax/operators.adoc#query-operators-mathematical[Mathematical operators]
188+
| xref:expressions/mathematical-operators.adoc[Mathematical operators]
189189
|
190190

191191
| 20.22

modules/ROOT/pages/functions/mathematical-logarithmic.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[[query-functions-logarithmic]]
55
= Mathematical functions - logarithmic
66

7-
Logarithmic mathematical functions operate on numeric expressions only, and will return an error if used on any other values. See also xref::syntax/operators.adoc#query-operators-mathematical[Mathematical operators].
7+
Logarithmic mathematical functions operate on numeric expressions only, and will return an error if used on any other values. See also xref:expressions/mathematical-operators.adoc[Mathematical operators].
88

99

1010
[[functions-e]]

modules/ROOT/pages/functions/mathematical-numeric.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
= Mathematical functions - numeric
66

77
Numeric mathematical functions operate on numeric expressions only, and will return an error if used on any other values.
8-
See also xref::syntax/operators.adoc#query-operators-mathematical[Mathematical operators].
8+
See also xref:expressions/mathematical-operators.adoc[Mathematical operators].
99

1010
[[example-graph]]
1111
== Example graph

modules/ROOT/pages/functions/mathematical-trigonometric.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[[query-functions-trigonometric]]
55
= Mathematical functions - trigonometric
66

7-
Trigonometric mathematical functions operate on numeric expressions only, and will return an error if used on any other values. See also xref::syntax/operators.adoc#query-operators-mathematical[Mathematical operators].
7+
Trigonometric mathematical functions operate on numeric expressions only, and will return an error if used on any other values. See also xref:expressions/mathematical-operators.adoc[Mathematical operators].
88

99
[[functions-acos]]
1010
== acos()

modules/ROOT/pages/syntax/operators.adoc

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ This page contains an overview of the available Cypher operators.
1212
|===
1313
| xref::syntax/operators.adoc#query-operators-aggregation[Aggregation operators] | `DISTINCT`
1414
| xref::syntax/operators.adoc#query-operators-property[Property operators] | `.` for static property access, `[]` for dynamic property access, `=` for replacing all properties, `+=` for mutating specific properties
15-
| xref::syntax/operators.adoc#query-operators-mathematical[Mathematical operators] | `+`, `-`, `*`, `/`, `%`, `^`
1615
| xref::syntax/operators.adoc#query-operators-string[String operators] | `+` and `\|\|` (string concatenation), `IS NORMALIZED`
1716
| xref::syntax/operators.adoc#query-operators-temporal[Temporal operators] | `+` and `-` for operations between durations and temporal instants/durations, `*` and `/` for operations between durations and numbers
1817
| xref::syntax/operators.adoc#query-operators-map[Map operators] | `.` for static value access by key, `[]` for dynamic value access by key
@@ -189,59 +188,6 @@ The properties on the node are updated as follows by those provided in the map:
189188

190189
See xref::clauses/set.adoc#set-setting-properties-using-map[Mutate specific properties using a map and `+=`] for more details on using the property mutation operator `+=`.
191190

192-
193-
[[query-operators-mathematical]]
194-
== Mathematical operators
195-
196-
The mathematical operators comprise:
197-
198-
* addition: `+`
199-
* subtraction or unary minus: `-`
200-
* multiplication: `*`
201-
* division: `/`
202-
* modulo division: `%`
203-
* exponentiation: `^`
204-
205-
206-
[[syntax-using-the-exponentiation-operator]]
207-
=== Using the exponentiation operator `^`
208-
209-
.Query
210-
[source, cypher]
211-
----
212-
WITH 2 AS number, 3 AS exponent
213-
RETURN number ^ exponent AS result
214-
----
215-
216-
.Result
217-
[role="queryresult",options="header,footer",cols="1*<m"]
218-
|===
219-
| +result+
220-
| +8.0+
221-
1+d|Rows: 1
222-
|===
223-
224-
225-
[[syntax-using-the-unary-minus-operator]]
226-
=== Using the unary minus operator `-`
227-
228-
.Query
229-
[source, cypher]
230-
----
231-
WITH -3 AS a, 4 AS b
232-
RETURN b - a AS result
233-
----
234-
235-
.Result
236-
[role="queryresult",options="header,footer",cols="1*<m"]
237-
|===
238-
| +result+
239-
| +7+
240-
241-
1+d|Rows: 1
242-
|===
243-
244-
245191
[[query-operators-string]]
246192
== String operators
247193

0 commit comments

Comments
 (0)