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

Cosh() private method

private Cosh ( ) : void
return void
        public static void Cosh()
        {
            AssertEqual(1.54308063f, MathF.Cosh(1.0f), CrossPlatformMachineEpsilon * 10);
            Assert.Equal(1.0f, MathF.Cosh(0.0f));
            AssertEqual(1.54308063f, MathF.Cosh(-1.0f), CrossPlatformMachineEpsilon * 10);
            Assert.Equal(float.NaN, MathF.Cosh(float.NaN));
            Assert.Equal(float.PositiveInfinity, MathF.Cosh(float.PositiveInfinity));
            Assert.Equal(float.PositiveInfinity, MathF.Cosh(float.NegativeInfinity));
        }