From 1d76fc9636e05019c661f206b0b3d8b271f48266 Mon Sep 17 00:00:00 2001 From: gyuton Date: Wed, 20 Oct 2021 01:59:27 +0300 Subject: [PATCH] Small fix --- .../functions/arithmetic-functions.md | 4 ++-- .../sql-reference/functions/tuple-functions.md | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/en/sql-reference/functions/arithmetic-functions.md b/docs/en/sql-reference/functions/arithmetic-functions.md index a8fc07d59e8..61818a4c6ac 100644 --- a/docs/en/sql-reference/functions/arithmetic-functions.md +++ b/docs/en/sql-reference/functions/arithmetic-functions.md @@ -82,7 +82,7 @@ An exception is thrown when dividing by zero or when dividing a minimal negative Returns the least common multiple of the numbers. An exception is thrown when dividing by zero or when dividing a minimal negative number by minus one. -# max2 {#max2} +## max2 {#max2} Compares two values and returns the maximum. The returned value is converted to [Float64](../../sql-reference/data-types/float.md). @@ -119,7 +119,7 @@ Result: └─────────────┘ ``` -# min2 {#min2} +## min2 {#min2} Compares two values and returns the minimum. The returned value is converted to [Float64](../../sql-reference/data-types/float.md). diff --git a/docs/en/sql-reference/functions/tuple-functions.md b/docs/en/sql-reference/functions/tuple-functions.md index 4a7c0a7fc68..c6d965ced54 100644 --- a/docs/en/sql-reference/functions/tuple-functions.md +++ b/docs/en/sql-reference/functions/tuple-functions.md @@ -485,7 +485,7 @@ Alias: `normL1`. **Returned value** -- L1 norm or [taxicab geometry](https://en.wikipedia.org/wiki/Taxicab_geometry) distance. +- L1-norm or [taxicab geometry](https://en.wikipedia.org/wiki/Taxicab_geometry) distance. Type: [UInt](../../sql-reference/data-types/int-uint.md), [Float](../../sql-reference/data-types/float.md) or [Decimal](../../sql-reference/data-types/decimal.md). @@ -512,7 +512,7 @@ Calculates the square root of the sum of the squares of the tuple values. **Syntax** ```sql -L1Norm(tuple) +L2Norm(tuple) ``` Alias: `normL2`. @@ -523,7 +523,7 @@ Alias: `normL2`. **Returned value** -- L2 norm or [Euclidean distance](https://en.wikipedia.org/wiki/Euclidean_distance). +- L2-norm or [Euclidean distance](https://en.wikipedia.org/wiki/Euclidean_distance). Type: [Float](../../sql-reference/data-types/float.md). @@ -561,7 +561,7 @@ Alias: `normLinf`. **Returned value** -- The maximum absolute value. +- Linf-norm or the maximum absolute value. Type: [Float](../../sql-reference/data-types/float.md). @@ -757,7 +757,7 @@ Alias: `distanceLp`. **Returned value** -- Lp-norm distance. +- p-norm distance. Type: [Float](../../sql-reference/data-types/float.md). @@ -817,7 +817,7 @@ Result: ## L2Normalize {#l2normalize} -Calculates the unit vector of a given vector (the values of the tuple are the coordinates) in 2-norm ([Euclidean geometry](https://en.wikipedia.org/wiki/Euclidean_space). +Calculates the unit vector of a given vector (the values of the tuple are the coordinates) in 2-norm ([Euclidean geometry](https://en.wikipedia.org/wiki/Euclidean_space)). **Syntax** @@ -944,8 +944,8 @@ cosineDistance(tuple1, tuple2) **Arguments** -- `tuple1` — [Tuple](../../sql-reference/data-types/tuple.md). -- `tuple1` — [Tuple](../../sql-reference/data-types/tuple.md). +- `tuple1` — First tuple. [Tuple](../../sql-reference/data-types/tuple.md). +- `tuple2` — Second tuple. [Tuple](../../sql-reference/data-types/tuple.md). **Returned value**