Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions docs/search/search-query-language/math-expressions/abs.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ title: abs Function
sidebar_label: abs
---



The absolute function calculates the absolute value of x.

## Syntax
Expand All @@ -21,5 +19,5 @@ The function cannot be nested.
## Example

```sql
abs(-1.5) as v // v = 1.5
* | abs(-1.5) as v
```
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ title: acos Function
sidebar_label: acos
---


Returns the inverse cosine of the argument.

## Syntax
Expand All @@ -16,5 +15,5 @@ acos(<x>) as <field>
## Example

```sql
acos(1) as v // v = 0
* | acos(1) as v
```
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ asin(<x>) as <field>
## Example

```sql
asin(1) as v // v = 1.5707963267948966
* | asin(1) as v
```
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ title: atan Function
sidebar_label: atan
---


Returns the inverse tangent of the argument.

## Syntax
Expand All @@ -16,5 +15,5 @@ atan(<x>) as <field>
## Example

```sql
atan(1) as v // v = 0.78540
* | atan(1) as v
```
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ atan2(<b>, <c>) as <field>
## Example

```sql
atan2(0, -1) as v // v = pi
* | atan2(0, -1) as v
```
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ cbrt(<x>) as <field>
## Example

```sql
cbrt(8) as v // v = 2
* | cbrt(8) as v
```
4 changes: 2 additions & 2 deletions docs/search/search-query-language/math-expressions/ceil.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ ceil(<x>) as <field>
## Example

```sql
ceil(1.5) as v // v = 2
* | ceil(1.5) as v
```

```sql
ceil(-1.5) as v // v = -1
* | ceil(-1.5) as v
```
3 changes: 1 addition & 2 deletions docs/search/search-query-language/math-expressions/cos.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ title: cos Function
sidebar_label: cos
---


Cosine of argument in radians.

## Syntax
Expand All @@ -16,5 +15,5 @@ cos(<x>) as <field>
## Example

```sql
cos(1) as v // v = 0.5403023058681398
* | cos(1) as v
```
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ cosh(<x>) as <field>
## Example

```sql
cosh(1) as v // v = 1.54308
* | cosh(1) as v
```
4 changes: 1 addition & 3 deletions docs/search/search-query-language/math-expressions/exp.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ title: exp Function
sidebar_label: exp
---



The exponent function returns Euler's number e raised to the power of x.

## Syntax
Expand All @@ -17,5 +15,5 @@ exp(<x>) as <field>
## Example

```sql
exp(1) as v // v = 2.7182818284590455
* | exp(1) as v
```
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ expm1(<x>) as <field>
## Example

```sql
expm1(0.1) as v // v = 0.10517091807564763
* | expm1(0.1) as v
```
4 changes: 2 additions & 2 deletions docs/search/search-query-language/math-expressions/floor.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ floor(<x>) as <field>
## Example

```sql
floor(1.5) as v // v = 1
* | floor(1.5) as v
```

```sql
floor(-1.5) as v // v = -2
* | floor(-1.5) as v
```
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ hypot(<a>, <b>) as <field>
## Example

```sql
hypot(3, 4) as c // c = 5
* | hypot(3, 4) as c
```
4 changes: 1 addition & 3 deletions docs/search/search-query-language/math-expressions/log.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ title: log Function
sidebar_label: log
---



The logarithm function returns the natural logarithm of x.

## Syntax
Expand All @@ -17,5 +15,5 @@ log(<x>) as <field>
## Example

```sql
log(2) as v // v = 0.6931471805599453
* | log(2) as v
```
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ log10(<x>) as <field>
## Example

```sql
log10(2) as v // v = 0.3010299956639812
* | log10(2) as v
```
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ title: log1p Function
sidebar_label: log1p
---



The log1p function computes log(1+x) accurately for small values of x.

## Syntax
Expand All @@ -17,5 +15,5 @@ log1p(<x>) as <field>
## Example

```sql
log1p(0.1) as v // v = 0.09531017980432487
* | log1p(0.1) as v
```
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ X is the value to round. Y is the number of decimal places to round to.
## Examples

```sql
round(1.549, 2) as a  // a = 1.55
* | round(1.549, 2) as a
```

You can calculate the message volume for a specific Source Host using this query. You can use the round function to get the closest integer value of the volume.  
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ sin(<x>) as <field>
## Example

```sql
sin(1) as v // v = 0.8414709848078965
* | sin(1) as v
```
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ sinh(<x>) as <field>
## Example

```sql
sinh(1) as v // v = 1.17520
* | sinh(1) as v
```
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ sqrt(<x>) as <field>
## Example

```sql
sqrt(4) as v // v = 2
* | sqrt(4) as v
```
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ tan(<x>) as <field>
## Example

```sql
tan(1) as v // v = 1.5574077246549023
* | tan(1) as v
```
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ tanh(<x>) as <field>
## Example

```sql
tanh(1) as v // v = 0.76159
t* | anh(1) as v
```
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ toDegrees(<x>) as <field>
## Example

```sql
toDegrees(asin(1)) as v // v = 90
* | toDegrees(asin(1)) as v
```
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ toRadians(<x>) as <field>
## Example

```sql
toRadians(180) as v // v = pi
* | toRadians(180) as v
```