public static void Tanh()
{
AssertEqual(0.761594156f, MathF.Tanh(1.0f), CrossPlatformMachineEpsilon);
Assert.Equal(0.0f, MathF.Tanh(0.0f));
AssertEqual(-0.761594156f, MathF.Tanh(-1.0f), CrossPlatformMachineEpsilon);
Assert.Equal(float.NaN, MathF.Tanh(float.NaN));
Assert.Equal(1.0f, MathF.Tanh(float.PositiveInfinity));
Assert.Equal(-1.0f, MathF.Tanh(float.NegativeInfinity));
}