public void TestSinForLarge() { var d_calc = new Derivatives_Calculator(); var actual = d_calc.Sin(0.42e12); var expected = -0.82; Assert.AreEqual(expected, actual); }
public void TestSinForPositive() { var d_calc = new Derivatives_Calculator(); var actual = d_calc.Sin(27.4); var expected = -0.64; Assert.AreEqual(expected, actual); }
public void TestSinForNegative() { var d_calc = new Derivatives_Calculator(); var actual = d_calc.Sin(-36.6); var expected = 0.45; Assert.AreEqual(expected, actual); }
public void TestSinForZero() { var d_calc = new Derivatives_Calculator(); var actual = d_calc.Sin(0); var expected = 1; Assert.AreEqual(expected, actual); }