mirror of https://git.musl-libc.org/git/musl
Browse Source
the old formula atan2(1,sqrt((1+x)/(1-x))) was faster but could give nan result at x=1 when the rounding mode is FE_DOWNWARD (so 1-1 == -0 and 2/-0 == -inf), the new formula gives -0 at x=+-1 with downward rounding.rs-1.0
2 changed files with 2 additions and 6 deletions
Loading…
Reference in new issue