Standard library / math
math.Cosh()
Hyperbolic cosine. Expected stdout: '1\n'.
Formal Syntax & Structure
go syntaxgo
func Cosh(x float64) float64Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| x | float64 | First input operand (or sole input if unary). |
Return Value
float64
Hyperbolic cosine.
Working Example
Example Snippetgo
package main
import ( "fmt" "math")
func main() { fmt.Println(math.Cosh(0))}