title | titleSuffix | description | author | ms.author | ms.reviewer | ms.service | ms.subservice | ms.topic | ms.devlang | ms.date | ms.custom |
---|---|---|---|---|---|---|---|---|---|---|---|
TAN |
Azure Cosmos DB for NoSQL |
An Azure Cosmos DB for NoSQL system function that returns the trigonometric tangent of the specified angle. |
jcodella |
jacodel |
sidandrews |
cosmos-db |
nosql |
reference |
nosql |
02/27/2024 |
query-reference |
[!INCLUDENoSQL]
Returns the trigonometric tangent of the specified angle in radians.
TAN(<numeric_expr>)
Description | |
---|---|
numeric_expr |
A numeric expression. |
Returns a numeric expression.
The following example calculates the cotangent of the specified angle using the function.
:::code language="nosql" source="~/cosmos-db-nosql-query-samples/scripts/tan/query.sql" highlight="2-3":::
:::code language="json" source="~/cosmos-db-nosql-query-samples/scripts/tan/result.json":::
- This function doesn't use the index.