Skip to content

Commit c3634c8

Browse files
committed
Address comment.
1 parent d677fa6 commit c3634c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/src/math/generic/asin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ LLVM_LIBC_FUNCTION(double, asin, (double x)) {
161161
// asin(x) = y = pi/2 - 2 * asin( sqrt( (1 - x)/2 ) )
162162
// Let u = (1 - x)/2, then:
163163
// asin(x) = pi/2 - 2 * asin( sqrt(u) )
164-
// Moreover, since 0.5 < x <= 1:
165-
// 0 <= u < 1/4, and 0 <= sqrt(u) < 0.5,
164+
// Moreover, since 0.5 <= x < 1:
165+
// 0 < u <= 1/4, and 0 < sqrt(u) <= 0.5,
166166
// And hence we can reuse the same polynomial approximation of asin(x) when
167167
// |x| <= 0.5:
168168
// asin(x) ~ pi/2 - 2 * sqrt(u) * P(u),

0 commit comments

Comments
 (0)