예제 #1
0
        public static void CanSine()
        {
            var num1 = 1;
            var num2 = Math.PI;

            var result1 = Math.Sin(num1);
            var result2 = Math.Sin(num2);

            var sin1 = new Sine(new Number(num1));
            var sin2 = new Sine(Number.Pi);

            Assert.AreEqual(result1, sin1.GetValue().AsFloatingPt);
            Assert.AreEqual(result2, sin2.GetValue().AsFloatingPt);
        }