2 Star 2 Fork 9

王布衣/gox

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
cosh.go 139 Bytes
Copy Edit Raw Blame History
王布衣 authored 2023-08-13 11:51 . 升级go版本到1.21.0
package math32
func Cosh(x float32) float32 {
x = Abs(x)
if x > 21 {
return Exp(x) * 0.5
}
ex := Exp(x)
return (ex + 1/ex) * 0.5
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/quant1x/gox.git
git@gitee.com:quant1x/gox.git
quant1x
gox
gox
v1.17.0

Search