---
updatedAt: 2025-12-05T18:41:41.000Z
agentTools:
  projectIndex: https://docs.observeinc.com/llms.txt
---

# tan_deg

```
tan_deg(angle: float64) -> float64
```

Computes the tangent of the input and returns a float64. The input should be expressed in degrees.

Arguments

1. angle (required)
   Angle in degrees, a float64

# Domain

This is a scalar function (calculates a single output value for a single input row).

# Categories

* [Numeric](function#numeric-functions)

# Examples

<OpalCodeBlock code={
`make_col tan:tan_deg(angle)
`}/>

Create a column 'tan' with the result of the tangent of column 'angle'\
The resulting column will be in degrees.

Given the below column `angle`, `tan_deg` produces the below column `tan`

| angle | tan  |
| ----- | ---- |
| 0     | 0    |
| 30    | √3/3 |
| 45    | 1    |
| 60    | √3   |
| 180   | 0    |
| 360   | 0    |