zclllyybb commented on code in PR #3334:
URL: https://github.com/apache/doris-website/pull/3334#discussion_r2765163268
##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/numeric-functions/gamma.md:
##########
@@ -0,0 +1,82 @@
+---
+{
+ "title": "GAMMA",
+ "language": "zh-CN",
+ "description": "返回 x 的 Gamma 函数值。"
+}
+---
+
+## 描述
+
+返回 `x` 的 Gamma 函数值。Gamma 函数定义为 `Γ(x) = ∫₀^∞ t^(x-1)e^(-t)dt`(当 x >
0),并通过解析延拓扩展到其他实数。
+
+对于正整数,`Γ(n) = (n-1)!`
+
+## 语法
+
+```sql
+GAMMA(<x>)
+```
+
+## 参数
+
+| 参数 | 说明 |
+| -- | -- |
+| `<x>` | 用于计算 Gamma 函数的输入值 |
+
+## 返回值
+
+返回一个 DOUBLE 类型的值。特殊情况:
+- 当参数为 NULL 时,返回 NULL
+- 当参数为正整数 n 时,返回 (n-1)!
Review Comment:
这个不属于特殊情况吧
##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/numeric-functions/gamma.md:
##########
@@ -0,0 +1,82 @@
+---
+{
+ "title": "GAMMA",
+ "language": "zh-CN",
+ "description": "返回 x 的 Gamma 函数值。"
+}
+---
+
+## 描述
+
+返回 `x` 的 Gamma 函数值。Gamma 函数定义为 `Γ(x) = ∫₀^∞ t^(x-1)e^(-t)dt`(当 x >
0),并通过解析延拓扩展到其他实数。
+
+对于正整数,`Γ(n) = (n-1)!`
+
+## 语法
+
+```sql
+GAMMA(<x>)
+```
+
+## 参数
+
+| 参数 | 说明 |
+| -- | -- |
+| `<x>` | 用于计算 Gamma 函数的输入值 |
+
+## 返回值
+
+返回一个 DOUBLE 类型的值。特殊情况:
+- 当参数为 NULL 时,返回 NULL
+- 当参数为正整数 n 时,返回 (n-1)!
+- 当参数为 0 或负整数时,返回 NaN
+- 对于非常大的正值,可能返回 Infinity
Review Comment:
example?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]