コード例 #1
0
        public void TestSinForLarge()
        {
            var d_calc   = new Derivatives_Calculator();
            var actual   = d_calc.Sin(0.42e12);
            var expected = -0.82;

            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
        public void TestSinForPositive()
        {
            var d_calc   = new Derivatives_Calculator();
            var actual   = d_calc.Sin(27.4);
            var expected = -0.64;

            Assert.AreEqual(expected, actual);
        }
コード例 #3
0
        public void TestSinForNegative()
        {
            var d_calc   = new Derivatives_Calculator();
            var actual   = d_calc.Sin(-36.6);
            var expected = 0.45;

            Assert.AreEqual(expected, actual);
        }
コード例 #4
0
        public void TestSinForZero()
        {
            var d_calc   = new Derivatives_Calculator();
            var actual   = d_calc.Sin(0);
            var expected = 1;

            Assert.AreEqual(expected, actual);
        }