Sin, cos, tan added

This commit is contained in:
Nitload
2023-01-24 01:40:37 +08:00
parent 4c5dfb4828
commit 05869ac0ae
28 changed files with 120 additions and 15 deletions
+12 -2
View File
@@ -39,7 +39,10 @@ namespace StgSharp
/// </returns>
public unsafe static float Log(float x)
{
if (x<0)
{
throw new ArgumentException();
}
uint input = *(uint*)&x;
uint f = input;
@@ -62,6 +65,13 @@ namespace StgSharp
result +
logArray[order];
}
public static float Log(float x, float y)
{
return Log(x)/Log(y);
}
}
}