Standard library / math

math.Acosh()

Inverse hyperbolic cosine; real domain starts at 1. Expected stdout: '0\n'.

Formal Syntax & Structure

go syntaxgo
func Acosh(x float64) float64

Parameters & Attributes

NameTypeDescription
xfloat64First input operand (or sole input if unary).

Return Value

float64

Inverse hyperbolic cosine; real domain starts at 1.

Working Example

Example Snippetgo
package main
import (  "fmt"  "math")
func main() {  fmt.Println(math.Acosh(1))}
Go Reference