Skip to content

Commit cae63bc

Browse files
committed
Add TAN
1 parent 3f81083 commit cae63bc

File tree

1 file changed

+6
-18
lines changed
  • articles/cosmos-db/nosql/query

1 file changed

+6
-18
lines changed

articles/cosmos-db/nosql/query/tan.md

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.reviewer: sidandrews
88
ms.service: cosmos-db
99
ms.subservice: nosql
1010
ms.topic: reference
11-
ms.date: 07/01/2023
11+
ms.date: 07/24/2023
1212
ms.custom: query-reference
1313
---
1414

@@ -22,7 +22,7 @@ Returns the trigonometric tangent of the specified angle in radians.
2222

2323
```sql
2424
TAN(<numeric_expr>)
25-
```
25+
```
2626

2727
## Arguments
2828

@@ -38,25 +38,13 @@ Returns a numeric expression.
3838

3939
The following example calculates the cotangent of the specified angle using the function.
4040

41-
```sql
42-
SELECT VALUE {
43-
tangentSquareRootPi: TAN(PI()/2),
44-
tangentArbitraryNumber: TAN(124.1332)
45-
}
46-
```
47-
48-
```json
49-
[
50-
{
51-
"tangentSquareRootPi": 16331239353195370,
52-
"tangentArbitraryNumber": -24.80651023035602
53-
}
54-
]
55-
```
41+
:::code language="sql" source="~/cosmos-db-nosql-query-samples/scripts/tan/query.sql" highlight="2-3":::
42+
43+
:::code language="json" source="~/cosmos-db-nosql-query-samples/scripts/tan/result.json":::
5644

5745
## Remarks
5846

59-
- This system function doesn't use the index.
47+
- This function doesn't use the index.
6048

6149
## Next steps
6250

0 commit comments

Comments
 (0)