System.Tests.MathFTests.Exp C# (CSharp) Method

Exp() private method

private Exp ( ) : void
return void
        public static void Exp()
        {
            AssertEqual(20.0855369f, MathF.Exp(3.0f), CrossPlatformMachineEpsilon * 100);
            Assert.Equal(1.0f, MathF.Exp(0.0f));
            Assert.Equal(MathF.E, MathF.Exp(1.0f));
            AssertEqual(0.0497870684f, MathF.Exp(-3.0f), CrossPlatformMachineEpsilon / 10);
            Assert.Equal(float.NaN, MathF.Exp(float.NaN));
            Assert.Equal(float.PositiveInfinity, MathF.Exp(float.PositiveInfinity));
            Assert.Equal(0.0f, MathF.Exp(float.NegativeInfinity));
        }