mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-01 14:19:14 -05:00
9d2b5f98d0
This commit adds these new template functions in the `math` namespace: math.Acos math.Asin math.Atan math.Atan2 math.Cos math.Pi math.Sin math.Tan math.ToDegrees math.ToRadians Co-authored-by: Joe Mooring <joe@mooring.com>
24 lines
466 B
Markdown
24 lines
466 B
Markdown
---
|
|
title: math.Tan
|
|
description: Returns the tangent of the given radian number.
|
|
categories: []
|
|
keywords: []
|
|
action:
|
|
aliases: []
|
|
related:
|
|
- functions/math/Pi
|
|
- functions/math/Sin
|
|
- functions/math/Cos
|
|
- functions/math/Asin
|
|
- functions/math/Acos
|
|
- functions/math/Atan
|
|
- functions/math/Atan2
|
|
returnType: float64
|
|
signatures: [math.Tan VALUE]
|
|
---
|
|
|
|
{{< new-in 0.130.0 >}}
|
|
|
|
```go-html-template
|
|
{{ math.Tan 1 }} → 1.557407724654902
|
|
```
|