Merge pull request #1895 from yeongjukang/patch-1

fix parameter for atan2 in procedure math.asin
This commit is contained in:
gingerBill
2022-07-22 11:23:46 +01:00
committed by GitHub

View File

@@ -1357,7 +1357,7 @@ atan :: proc "contextless" (x: $T) -> T where intrinsics.type_is_float(T) {
}
asin :: proc "contextless" (x: $T) -> T where intrinsics.type_is_float(T) {
return atan2(x, 1 + sqrt(1 - x*x))
return atan2(x, sqrt(1 - x*x))
}
acos :: proc "contextless" (x: $T) -> T where intrinsics.type_is_float(T) {