Skip to content

Commit c60dc42

Browse files
committed
fix math function table
1 parent 1a9651c commit c60dc42

4 files changed

Lines changed: 100 additions & 100 deletions

File tree

src/UserGuide/Master/Table/SQL-Manual/Basis-Function.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -635,31 +635,31 @@ It costs 0.319s
635635

636636
### 5.2 Mathematical functions
637637

638-
| Function Name | Description | Input | Output | Usage |
639-
| :------------------------------- | :----------------------------------------------------------- | :-------------------------- | :----------------- | :--------- |
640-
| sin | Sine | double, float, INT64, INT32 | double | sin(x) |
641-
| cos | Cosine | double, float, INT64, INT32 | double | cos(x) |
642-
| tan | Tangent | double, float, INT64, INT32 | double | tan(x) |
643-
| asin | Inverse Sine | double, float, INT64, INT32 | double | asin(x) |
644-
| acos | Inverse Cosine | double, float, INT64, INT32 | double | acos(x) |
645-
| atan | Inverse Tangent | double, float, INT64, INT32 | double | atan(x) |
646-
| sinh | Hyperbolic Sine | double, float, INT64, INT32 | double | sinh(x) |
647-
| cosh | Hyperbolic Cosine | double, float, INT64, INT32 | double | cosh(x) |
648-
| tanh | Hyperbolic Tangent | double, float, INT64, INT32 | double | tanh(x) |
649-
| degrees | Converts angle `x` in radians to degrees | double, float, INT64, INT32 | double | degrees(x) |
650-
| radians | Radian Conversion from Degrees | double, float, INT64, INT32 | double | radians(x) |
651-
| abs | Absolute Value | double, float, INT64, INT32 | Same as input type | abs(x) |
652-
| sign | Returns the sign of `x`: - If `x = 0`, returns `0` - If `x > 0`, returns `1` - If `x < 0`, returns `-1` For `double/float` inputs: - If `x = NaN`, returns `NaN` - If `x = +Infinity`, returns `1.0` - If `x = -Infinity`, returns `-1.0` | double, float, INT64, INT32 | Same as input type | sign(x) |
653-
| ceil | Rounds `x` up to the nearest integer | double, float, INT64, INT32 | double | ceil(x) |
654-
| floor | Rounds `x` down to the nearest integer | double, float, INT64, INT32 | double | floor(x) |
655-
| exp | Returns `e^x` (Euler's number raised to the power of `x`) | double, float, INT64, INT32 | double | exp(x) |
656-
| ln | Returns the natural logarithm of `x` | double, float, INT64, INT32 | double | ln(x) |
657-
| log10 | Returns the base 10 logarithm of `x` | double, float, INT64, INT32 | double | log10(x) |
658-
| round | Rounds `x` to the nearest integer | double, float, INT64, INT32 | double | round(x) |
659-
| Rounds `x` to `d` decimal places | double, float, INT64, INT32 | double | round(x, d) | |
660-
| sqrt | Returns the square root of `x`. | double, float, INT64, INT32 | double | sqrt(x) |
661-
| e | Returns Euler’s number `e`. | | double | e() |
662-
| pi | Pi (π) | | double | pi() |
638+
| Function Name | Description | Input | Output | Usage |
639+
|:--------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------|:--------------------| :--------- |
640+
| sin | Sine | double, float, INT64, INT32 | double | sin(x) |
641+
| cos | Cosine | double, float, INT64, INT32 | double | cos(x) |
642+
| tan | Tangent | double, float, INT64, INT32 | double | tan(x) |
643+
| asin | Inverse Sine | double, float, INT64, INT32 | double | asin(x) |
644+
| acos | Inverse Cosine | double, float, INT64, INT32 | double | acos(x) |
645+
| atan | Inverse Tangent | double, float, INT64, INT32 | double | atan(x) |
646+
| sinh | Hyperbolic Sine | double, float, INT64, INT32 | double | sinh(x) |
647+
| cosh | Hyperbolic Cosine | double, float, INT64, INT32 | double | cosh(x) |
648+
| tanh | Hyperbolic Tangent | double, float, INT64, INT32 | double | tanh(x) |
649+
| degrees | Converts angle `x` in radians to degrees | double, float, INT64, INT32 | double | degrees(x) |
650+
| radians | Radian Conversion from Degrees | double, float, INT64, INT32 | double | radians(x) |
651+
| abs | Absolute Value | double, float, INT64, INT32 | Same as input type | abs(x) |
652+
| sign | Returns the sign of `x`: - If `x = 0`, returns `0` - If `x > 0`, returns `1` - If `x < 0`, returns `-1` For `double/float` inputs: - If `x = NaN`, returns `NaN` - If `x = +Infinity`, returns `1.0` - If `x = -Infinity`, returns `-1.0` | double, float, INT64, INT32 | Same as input type | sign(x) |
653+
| ceil | Rounds `x` up to the nearest integer | double, float, INT64, INT32 | double | ceil(x) |
654+
| floor | Rounds `x` down to the nearest integer | double, float, INT64, INT32 | double | floor(x) |
655+
| exp | Returns `e^x` (Euler's number raised to the power of `x`) | double, float, INT64, INT32 | double | exp(x) |
656+
| ln | Returns the natural logarithm of `x` | double, float, INT64, INT32 | double | ln(x) |
657+
| log10 | Returns the base 10 logarithm of `x` | double, float, INT64, INT32 | double | log10(x) |
658+
| round | Rounds `x` to the nearest integer | double, float, INT64, INT32 | double | round(x) |
659+
| round | Rounds `x` to `d` decimal places | double, float, INT64, INT32 | double | round(x, d)|
660+
| sqrt | Returns the square root of `x`. | double, float, INT64, INT32 | double | sqrt(x) |
661+
| e | Returns Euler’s number `e`. | | double | e() |
662+
| pi | Pi (π) | | double | pi() |
663663

664664

665665
## 6. Conditional Expressions

0 commit comments

Comments
 (0)