BiteTheDDDDt commented on code in PR #2604:
URL: https://github.com/apache/doris-website/pull/2604#discussion_r2221984772


##########
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, only input and 
output are supported as double.
+
+## Syntax
+
+```sql
+COT(<x>)
+```
+
+## Parameters
+
+| Parameter | Description |
+| -- | -- |
+| `<x>` | The value for which the cotangent is to be calculated |

Review Comment:
   输入null返回null,这个是绝大部分函数统一的默认行为。
   
三角函数输入一些特殊值的行为,doris本身还缺少完整梳理,给不了一个准确的说法,比如目前fe和be计算得到的结果可能不一样,或者有时候是inf,有时候是null。



-- 
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]

Reply via email to