go Acosh(),反双曲余弦

Acosh()方法语法

func Acosh(x float64) float64

go源码对Acosh()方法的介绍:

Acosh returns the inverse hyperbolic cosine of x.

Special cases are:

Acosh(+Inf) = +Inf
Acosh(x) = NaN if x < 1
Acosh(NaN) = NaN

golang标准库math的Acosh()方法,用于求取参数的反双曲余弦值,除此之外,Acosh(+Inf) = +Inf;Acosh(x) = NaN if x < 1;Acosh(NaN) = NaN。


math.Acosh()方法实例代码

func main() {
	acosh_v := math.Acosh(9)
	fmt.Println(acosh_v)
}

运行go文件,得到输出:

2.8872709503576206

全栈后端 / go语法 :













Copyright © 2022-2024 笨鸟工具 x1y1z1.com All Rights Reserved.