Home→Forums→MonoBrick EV3 Firmware→benchmark test: HaWe brickbench – for C# / Mono?→Reply To: benchmark test: HaWe brickbench – for C# / Mono?
February 13, 2015 at 20:41
#5251
Helmut Wunder
Participant
unfortunately the NAN bug still was not fixed yet, the sub test has been fixed again – now all intermediate values have been controlled and verified, no NANs any more. This is the corrected current sub test code for float and transcendental functions:
static void TestFloatMath() {
double s = 3.141592;
int y;
for (y = 0; y < 1000; ++y) {
s *= Math.Sqrt(s);
s = Math.Sin(s);
s = Math.Exp(s);
s *= s;
}
//return s;
}
Follow