Sin, cos, tan added
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user