Reply To: benchmark test: HaWe brickbench – for C# / Mono?

HomeForumsMonoBrick EV3 Firmwarebenchmark test: HaWe brickbench – for C# / Mono?Reply To: benchmark test: HaWe brickbench – for C# / Mono?

#5251
Author Image
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;
      }
Posted in

Make a donation