daily update on 20230205 by nitload youmu

This commit is contained in:
Nitload
2023-02-05 23:46:24 +08:00
parent 19a1420b2f
commit 175f76ef29
33 changed files with 183 additions and 9 deletions
+7 -7
View File
@@ -12,7 +12,7 @@ internal class Program
/**/
/*
float test = StgSharp.Math.Pow(4.0f,0.125f);
float test = StgSharp.Math.ACos(0.5f);
Console.WriteLine(test);
/**/
@@ -26,7 +26,7 @@ internal class Program
stopwatch.Start(); // 开始监视代码运行时间
for (float i = 2; i < time; i++)
{
a = StgSharp.Math.Pow(i, i);
a = StgSharp.Math.ACos(i/500000-1);
}
stopwatch.Stop(); // 停止监视
TimeSpan timespan = stopwatch.Elapsed; // 获取当前实例测量得出的总时间
@@ -40,7 +40,7 @@ internal class Program
stopwatch1.Start();
for (float i = 2; i < time2; i++)
{
b = System.MathF.Pow(i, i);
b = System.MathF.Acos(i / 500000 - 1);
}
stopwatch1.Stop();
timespan = stopwatch1.Elapsed;
@@ -51,14 +51,14 @@ internal class Program
/**/
/*
//精度测试
double accuracy = 0;
for (float i = -10f; i < 2000f; i += 0.01f)
for (float i = -10f; i < 200f; i += 0.01f)
{
double r1 = StgSharp.Math.Pow(2,i);
double r2 = System.Math.Pow(2,i);
double r1 = StgSharp.Math.ACos(i/100);
double r2 = 180*System.Math.Acos(i/100)/3.1415926;
double ac = ( System.Math.Max(r1,r2)- System.Math.Min(r1, r2) ) / r2;
if (ac>accuracy)
{