You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@age.apache.org by de...@apache.org on 2023/09/26 14:31:03 UTC

[age-website] branch master updated: Added cotangent in trigonometric (#186)

This is an automated email from the ASF dual-hosted git repository.

dehowef pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/age-website.git


The following commit(s) were added to refs/heads/master by this push:
     new e5f14966 Added cotangent in trigonometric (#186)
e5f14966 is described below

commit e5f14966290262666f5ba9ee4b6333e72a91a1c9
Author: Wendel de Lana <sr...@outlook.com>
AuthorDate: Tue Sep 26 11:30:58 2023 -0300

    Added cotangent in trigonometric (#186)
---
 docs/functions/trigonometric_functions.md | 72 +++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)

diff --git a/docs/functions/trigonometric_functions.md b/docs/functions/trigonometric_functions.md
index 1ba12f44..28b73303 100644
--- a/docs/functions/trigonometric_functions.md
+++ b/docs/functions/trigonometric_functions.md
@@ -408,6 +408,78 @@ Results:
 
 
 
+## Cot
+
+cot() returns the cotangent of a number.
+
+Syntax: `cot(expression)`
+
+Returns:
+
+
+```
+A Float.
+```
+
+
+Arguments:
+
+
+<table>
+  <tr>
+   <td>Name
+   </td>
+   <td>Description
+   </td>
+  </tr>
+  <tr>
+   <td>expression
+   </td>
+   <td>An agtype number expression that represents the angle in radians.
+   </td>
+  </tr>
+</table>
+
+
+Considerations:
+
+
+
+* cot(null) returns null.
+
+Query:
+
+
+```postgresql
+SELECT *
+FROM cypher('graph_name', $$
+    RETURN cot(0.5)
+$$) as (t agtype);
+```
+
+
+The cotangent of 0.5 is returned.
+
+Results:
+
+
+<table>
+  <tr>
+   <td>t
+   </td>
+  </tr>
+  <tr>
+   <td>1.830487721712452
+   </td>
+  </tr>
+  <tr>
+   <td>1 row(s) returned
+   </td>
+  </tr>
+</table>
+
+
+
 ## asin
 
 asin() returns the arcsine of a number.