diff options
| author | Yeongju Kang <46637297+yeongjukang@users.noreply.github.com> | 2022-07-22 15:48:06 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-22 15:48:06 +0900 |
| commit | 4e8bc0786d7e6ea5c699286d68ad7379cf73be79 (patch) | |
| tree | e882cf5d32619ce5f2c568bba1f833860d443b8c | |
| parent | 3d3ccf061f535770b4030d0e851056f00a5f8d94 (diff) | |
fix parameter for atan2 in procedure asin
| -rw-r--r-- | core/math/math.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/math.odin b/core/math/math.odin index b711c160f..88cba965a 100644 --- a/core/math/math.odin +++ b/core/math/math.odin @@ -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) { |