1 Star 0 Fork 1

王布衣 / num

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
asin.go 340 Bytes
一键复制 编辑 原始数据 按行查看 历史
王布衣 提交于 2024-02-08 08:51 . first commit
package math32
func Asin(x float32) float32 {
if x == 0 {
return x // special case
}
sign := false
if x < 0 {
x = -x
sign = true
}
if x > 1 {
return NaN() // special case
}
temp := Sqrt(1 - x*x)
if x > 0.7 {
temp = Pi/2 - satan(temp/x)
} else {
temp = satan(x / temp)
}
if sign {
temp = -temp
}
return temp
}
Go
1
https://gitee.com/quant1x/num.git
git@gitee.com:quant1x/num.git
quant1x
num
num
v0.3.1

搜索帮助