You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test failure: System.Tests.DoubleTests.AtanPiTest on Android #71252
changed the title [-]Test failure: System.Tests.DoubleTests.AtanPiTest[/-][+]Test failure: System.Tests.DoubleTests.AtanPiTest on Android[/+]on Jun 24, 2022
Investigating this now. I am not able to reproduce it locally on a non-android device. I immediately notice that AtanPi uses the Math.Atan() intrinsic, which could have incorrect behavior on android devices. What this boils down to is that we expect Atan(-0) to produce -0, but instead it is probably producing 0. I'm unsure if there is a flaw in our logic or a flaw in the intrinsic's behavior.
Here is the current implementation of AtanPi: return Math.Atan(x) / Pi;
We have a test verifying that Math.Atan(-0) returns -0. A simple example also shows that -0 divided by Pi should return -0. Given this, I believe that there is a bug in Mono for Math.AtanPi.
I'm unsure which mono area this should fall under so I'm putting it under "meta".
Activity
[-]Test failure: System.Tests.DoubleTests.AtanPiTest[/-][+]Test failure: System.Tests.DoubleTests.AtanPiTest on Android[/+]karelz commentedon Jun 24, 2022
Due to large impact on CI, we should disable the tests ASAP
dotnet#71252 disable AtanPiTest for android x86
dakersnar commentedon Jun 24, 2022
Investigating this now. I am not able to reproduce it locally on a non-android device. I immediately notice that AtanPi uses the Math.Atan() intrinsic, which could have incorrect behavior on android devices. What this boils down to is that we expect Atan(-0) to produce -0, but instead it is probably producing 0. I'm unsure if there is a flaw in our logic or a flaw in the intrinsic's behavior.
dakersnar commentedon Jun 24, 2022
Here is the current implementation of AtanPi:
return Math.Atan(x) / Pi;We have a test verifying that
Math.Atan(-0)returns -0. A simple example also shows that -0 divided by Pi should return -0. Given this, I believe that there is a bug in Mono forMath.AtanPi.I'm unsure which mono area this should fall under so I'm putting it under "meta".
dotnet#71252 added comment
dotnet#71252 disable AtanPiTest on Android x86
dotnet#71252 disable only for android x86
dotnet#71252 refactor
#71252 disable Atan2PiTest on Android x86 (#71382)