This is an automated email from the ASF dual-hosted git repository. panxiaolei pushed a commit to branch dev_0708 in repository https://gitbox.apache.org/repos/asf/doris-website.git
commit 5da1372ea5bc44ea8f0fd284c0c9fa2ee35066a7 Author: BiteTheDDDDt <x...@selectdb.com> AuthorDate: Tue Jul 8 14:26:55 2025 +0800 add cot/sec/cosec --- .../scalar-functions/numeric-functions/cosec.md | 40 ++++++++++++++++++++++ .../scalar-functions/numeric-functions/cot.md | 40 ++++++++++++++++++++++ .../scalar-functions/numeric-functions/sec.md | 40 ++++++++++++++++++++++ .../scalar-functions/numeric-functions/cosec.md | 40 ++++++++++++++++++++++ .../scalar-functions/numeric-functions/cot.md | 40 ++++++++++++++++++++++ .../scalar-functions/numeric-functions/sec.md | 40 ++++++++++++++++++++++ sidebars.json | 5 ++- 7 files changed, 244 insertions(+), 1 deletion(-) diff --git a/docs/sql-manual/sql-functions/scalar-functions/numeric-functions/cosec.md b/docs/sql-manual/sql-functions/scalar-functions/numeric-functions/cosec.md new file mode 100644 index 00000000000..1139abeec52 --- /dev/null +++ b/docs/sql-manual/sql-functions/scalar-functions/numeric-functions/cosec.md @@ -0,0 +1,40 @@ +--- +{ + "title": "COSEC", + "language": "en" +} +--- + +## Description + +Returns the cosecant of x, where x is the value in radians. + +## Syntax + +```sql +COSEC(<x>) +``` + +## Parameters + +| Parameter | Description | +| -- | -- | +| `<x>` | The value for which the cosecant is to be calculated | + +## Return Value + +Returns the cosecant of x. + +## Example + +```sql +select cosec(1),cosec(2),cosec(1000); +``` + +```text ++--------------------+--------------------+------------------+ +| cosec(1) | cosec(2) | cosec(1000) | ++--------------------+--------------------+------------------+ +| 1.1883951057781212 | 1.0997501702946164 | 1.20936599707935 | ++--------------------+--------------------+------------------+ +``` diff --git a/docs/sql-manual/sql-functions/scalar-functions/numeric-functions/cot.md b/docs/sql-manual/sql-functions/scalar-functions/numeric-functions/cot.md new file mode 100644 index 00000000000..ca9f0c4408f --- /dev/null +++ b/docs/sql-manual/sql-functions/scalar-functions/numeric-functions/cot.md @@ -0,0 +1,40 @@ +--- +{ + "title": "COT", + "language": "en" +} +--- + +## Description + +Returns the cotangent of x, where x is the value in radians. + +## Syntax + +```sql +COT(<x>) +``` + +## Parameters + +| Parameter | Description | +| -- | -- | +| `<x>` | The value for which the cotangent is to be calculated | + +## Return Value + +Returns the cotangent of x. + +## Example + +```sql +select cot(1),cot(2),cot(1000); +``` + +```text ++--------------------+----------------------+--------------------+ +| cot(1) | cot(2) | cot(1000) | ++--------------------+----------------------+--------------------+ +| 0.6420926159343306 | -0.45765755436028577 | 0.6801221323348698 | ++--------------------+----------------------+--------------------+ +``` diff --git a/docs/sql-manual/sql-functions/scalar-functions/numeric-functions/sec.md b/docs/sql-manual/sql-functions/scalar-functions/numeric-functions/sec.md new file mode 100644 index 00000000000..d59feb91f65 --- /dev/null +++ b/docs/sql-manual/sql-functions/scalar-functions/numeric-functions/sec.md @@ -0,0 +1,40 @@ +--- +{ + "title": "SEC", + "language": "en" +} +--- + +## Description + +Returns the secant of x, where x is the value in radians. + +## Syntax + +```sql +SEC(<x>) +``` + +## Parameters + +| Parameter | Description | +| -- | -- | +| `<x>` | The value for which the secant is to be calculated | + +## Return Value + +Returns the secant of x. + +## Example + +```sql +select sec(1),sec(2),sec(1000); +``` + +```text ++--------------------+--------------------+--------------------+ +| sec(1) | sec(2) | sec(1000) | ++--------------------+--------------------+--------------------+ +| 1.8508157176809255 | -2.402997961722381 | 1.7781600385912715 | ++--------------------+--------------------+--------------------+ +``` diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/numeric-functions/cosec.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/numeric-functions/cosec.md new file mode 100644 index 00000000000..3ba9ab37518 --- /dev/null +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/numeric-functions/cosec.md @@ -0,0 +1,40 @@ +--- +{ + "title": "COSEC", + "language": "zh-CN" +} +--- + +## 描述 + +返回 x 的余割值,x 为弧度值 + +## 语法 + +```sql +COSEC(<x>) +``` + +## 参数 + +| 参数 | 说明 | +| -- | -- | +| `<x>` | 需要被计算余割值的值 | + +## 返回值 + +返回 x 的余割值 + +## 举例 + +```sql +select cosec(1),cosec(2),cosec(1000); +``` + +```text ++--------------------+--------------------+------------------+ +| cosec(1) | cosec(2) | cosec(1000) | ++--------------------+--------------------+------------------+ +| 1.1883951057781212 | 1.0997501702946164 | 1.20936599707935 | ++--------------------+--------------------+------------------+ +``` diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/numeric-functions/cot.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/numeric-functions/cot.md new file mode 100644 index 00000000000..b7f9a17285e --- /dev/null +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/numeric-functions/cot.md @@ -0,0 +1,40 @@ +--- +{ + "title": "COT", + "language": "zh-CN" +} +--- + +## 描述 + +返回 x 的余切值,x 为弧度值 + +## 语法 + +```sql +COT(<x>) +``` + +## 参数 + +| 参数 | 说明 | +| -- | -- | +| `<x>` | 需要被计算余切值的值 | + +## 返回值 + +返回 x 的余切值 + +## 举例 + +```sql +select cot(1),cot(2),cot(1000); +``` + +```text ++--------------------+----------------------+--------------------+ +| cot(1) | cot(2) | cot(1000) | ++--------------------+----------------------+--------------------+ +| 0.6420926159343306 | -0.45765755436028577 | 0.6801221323348698 | ++--------------------+----------------------+--------------------+ +``` diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/numeric-functions/sec.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/numeric-functions/sec.md new file mode 100644 index 00000000000..d618701660e --- /dev/null +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/numeric-functions/sec.md @@ -0,0 +1,40 @@ +--- +{ + "title": "SEC", + "language": "zh-CN" +} +--- + +## 描述 + +返回 x 的正割值,x 为弧度值 + +## 语法 + +```sql +SEC(<x>) +``` + +## 参数 + +| 参数 | 说明 | +| -- | -- | +| `<x>` | 需要被计算正割值的值 | + +## 返回值 + +返回 x 的正割值 + +## 举例 + +```sql +select sec(1),sec(2),sec(1000); +``` + +```text ++--------------------+--------------------+--------------------+ +| sec(1) | sec(2) | sec(1000) | ++--------------------+--------------------+--------------------+ +| 1.8508157176809255 | -2.402997961722381 | 1.7781600385912715 | ++--------------------+--------------------+--------------------+ +``` diff --git a/sidebars.json b/sidebars.json index 2ad7a097c0a..a9fc84f5fa7 100644 --- a/sidebars.json +++ b/sidebars.json @@ -1086,7 +1086,9 @@ "sql-manual/sql-functions/scalar-functions/numeric-functions/ceil", "sql-manual/sql-functions/scalar-functions/numeric-functions/conv", "sql-manual/sql-functions/scalar-functions/numeric-functions/cos", + "sql-manual/sql-functions/scalar-functions/numeric-functions/cosec", "sql-manual/sql-functions/scalar-functions/numeric-functions/cosh", + "sql-manual/sql-functions/scalar-functions/numeric-functions/cot", "sql-manual/sql-functions/scalar-functions/numeric-functions/degrees", "sql-manual/sql-functions/scalar-functions/numeric-functions/e", "sql-manual/sql-functions/scalar-functions/numeric-functions/exp", @@ -1109,6 +1111,7 @@ "sql-manual/sql-functions/scalar-functions/numeric-functions/random", "sql-manual/sql-functions/scalar-functions/numeric-functions/round", "sql-manual/sql-functions/scalar-functions/numeric-functions/round-bankers", + "sql-manual/sql-functions/scalar-functions/numeric-functions/sec", "sql-manual/sql-functions/scalar-functions/numeric-functions/sign", "sql-manual/sql-functions/scalar-functions/numeric-functions/sin", "sql-manual/sql-functions/scalar-functions/numeric-functions/sinh", @@ -1314,7 +1317,7 @@ "sql-manual/sql-functions/scalar-functions/date-time-functions/year", "sql-manual/sql-functions/scalar-functions/date-time-functions/year-ceil", "sql-manual/sql-functions/scalar-functions/date-time-functions/year-floor", - + "sql-manual/sql-functions/scalar-functions/date-time-functions/year-of-week", "sql-manual/sql-functions/scalar-functions/date-time-functions/yearweek", "sql-manual/sql-functions/scalar-functions/date-time-functions/years-add", "sql-manual/sql-functions/scalar-functions/date-time-functions/years-diff", --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org