Beispiel #1
0
 public void Log2_WithLookup()
 {
     for (var i = 1.0; i < uint.MaxValue; i *= 1.3)
     {
         var n = (ulong)i;
         Assert.Equal((uint)Math.Log(n, 2.0), AltMath.Log2(n));
     }
 }
 public double Digamma_AltMath() => AltMath.Digamma(DiGX);
 public uint Log2_AltMath_WithLookup() => AltMath.Log2(123);
 public double LogGamma_AltMath() => AltMath.LogGamma(LogGX);